ci: run tests on multiple node versions
This commit is contained in:
parent
1d464addfd
commit
186c5754d7
1 changed files with 22 additions and 2 deletions
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
|
@ -5,8 +5,8 @@ on:
|
|||
pull_request: { branches: ["0.x"] }
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
lint:
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -27,5 +27,25 @@ jobs:
|
|||
- name: Type Check
|
||||
run: yarn build
|
||||
|
||||
test:
|
||||
name: Test Node ${{ matrix.node-versions }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [16, 18, 20]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: yarn
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Test
|
||||
run: yarn test --coverage
|
||||
|
|
|
|||
Loading…
Reference in a new issue