Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Feb 15, 2024
1 parent 451286b commit 5dd5317
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,30 @@ jobs:
node-version: [10.x, 20.x]
part: [a, b]
include:
# Test with main branches of webpack dependencies
- os: ubuntu-latest
node-version: lts/*
part: a
use_main_branches: 1
- os: ubuntu-latest
node-version: lts/*
part: b
use_main_branches: 1
# Test on the latest version of Node.js
- os: ubuntu-latest
node-version: 21.x
part: a
- os: ubuntu-latest
node-version: 21.x
part: b
# Test on the old LTS version of Node.js
- os: ubuntu-latest
node-version: 18.x
part: a
- os: ubuntu-latest
node-version: 18.x
part: b
# Test on old Node.js versions
- os: ubuntu-latest
node-version: 16.x
part: a
Expand All @@ -110,15 +125,6 @@ jobs:
- os: ubuntu-latest
node-version: 12.x
part: a
# Test with main branches of webpack dependencies
- os: ubuntu-latest
node-version: lts/*
part: a
use_main_branches: 1
- os: ubuntu-latest
node-version: lts/*
part: b
use_main_branches: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -132,12 +138,16 @@ jobs:
yarn upgrade jest@^27.5.0 jest-circus@^27.5.0 jest-cli@^27.5.0 jest-diff@^27.5.0 jest-environment-node@^27.5.0 jest-junit@^13.0.0 @types/jest@^27.4.0 pretty-format@^27.0.2 --ignore-engines
yarn --frozen-lockfile --ignore-engines
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
- run: |
yarn upgrade eslint-plugin-jsdoc@^47.0.0
yarn --frozen-lockfile
if: matrix.node-version == '16.x'
# Install main version of our deps
- run: yarn upgrade enhanced-resolve@webpack/enhanced-resolve#main loader-runner@webpack/loader-runner#main webpack-sources@webpack/webpack-sources#main watchpack@webpack/watchpack#main tapable@webpack/tapable#master
if: matrix.use_main_branches == '1'
# Install dependencies for LTS node versions
- run: yarn --frozen-lockfile
if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x' && matrix.node-version != '16.x'
- run: yarn link --frozen-lockfile || true
- run: yarn link webpack --frozen-lockfile
- uses: actions/cache@v4
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
"jsons",
"junit",
"Junya",
"jsdoc",
"kaios",
"Kees",
"kibibytes",
Expand Down

0 comments on commit 5dd5317

Please sign in to comment.