ci: run tests on multiple node versions
This commit is contained in:
parent
c950b0c75a
commit
7ca3d97ce9
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"] }
|
pull_request: { branches: ["0.x"] }
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
lint:
|
||||||
name: Test
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -27,5 +27,25 @@ jobs:
|
||||||
- name: Type Check
|
- name: Type Check
|
||||||
run: yarn build
|
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
|
- name: Test
|
||||||
run: yarn test --coverage
|
run: yarn test --coverage
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue