Skip to content

Commit

Permalink
ci: use matrix for tests + add lint and typecheck jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Nov 12, 2023
1 parent 5d470a2 commit 3daafba
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
name: test

on:
- push
- pull_request

jobs:
linux:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
- 19.x
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4
- name: Install
run: npm install
- name: Run tests
run: npm test
windows:
runs-on: windows-latest
- name: Run lint
run: npm run lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
run: npm install
- name: Run typecheck
run: npm run typecheck

tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version:
- 18.x
- 19.x
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
Expand Down

0 comments on commit 3daafba

Please sign in to comment.