Skip to content

Commit

Permalink
Merge pull request #34 from mapado/yarn-4
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau authored Dec 9, 2024
2 parents dc0f258 + f725cbf commit 31f9251
Show file tree
Hide file tree
Showing 5 changed files with 3,636 additions and 2,266 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,26 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

# maybe handled via setup-node action one day https://github.com/actions/setup-node/pull/901
- name: enable corepack
run: corepack enable

# why did we did that twice ? https://github.com/actions/setup-node/issues/1075
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- run: yarn install
- run: yarn test
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"jest": "^29.0.0",
"jest-watch-typeahead": "^2.2.2",
"typescript": "^4.8.4"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 31f9251

Please sign in to comment.