Skip to content

Commit

Permalink
Put back the matrix strategy for node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Nov 19, 2023
1 parent 7f48ceb commit d47c344
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: run test
run: |
Expand All @@ -24,11 +27,14 @@ jobs:
toolkit-tests:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: install
run: |
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
testMatch: ['**/*.spec.ts'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+.(ts|tsx)$': 'ts-jest',
},
testPathIgnorePatterns: [
'/node_modules/',
Expand Down

0 comments on commit d47c344

Please sign in to comment.