2021-02-09 12:08:00 +01:00
|
|
|
name: Test
|
2021-02-03 18:03:51 +01:00
|
|
|
|
2021-02-09 12:08:00 +01:00
|
|
|
on: [push, pull_request]
|
2021-02-03 18:03:51 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2024-04-01 14:49:22 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2023-12-10 05:49:49 +01:00
|
|
|
timeout-minutes: 60
|
2021-02-03 18:03:51 +01:00
|
|
|
|
2024-04-01 14:49:22 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
|
2021-02-03 18:03:51 +01:00
|
|
|
steps:
|
2024-04-01 14:58:59 +02:00
|
|
|
# Windows fix. See https://github.com/actions/checkout/issues/226
|
|
|
|
- run: git config --global core.autocrlf false
|
|
|
|
|
2024-07-29 11:26:19 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-02-03 18:03:51 +01:00
|
|
|
|
2024-07-29 11:26:19 +02:00
|
|
|
- uses: actions/setup-node@v4
|
2021-02-03 18:03:51 +01:00
|
|
|
with:
|
2024-07-29 11:26:19 +02:00
|
|
|
node-version: 20
|
2021-11-14 14:55:12 +01:00
|
|
|
cache: 'yarn'
|
2021-02-03 18:03:51 +01:00
|
|
|
|
2024-07-20 16:05:33 +02:00
|
|
|
- run: yarn install --immutable
|
|
|
|
- run: yarn dedupe --check
|
2024-01-02 16:45:43 +01:00
|
|
|
- run: yarn test
|
|
|
|
- run: yarn tsc
|
2024-02-12 07:11:44 +01:00
|
|
|
- run: yarn lint
|