Merge pull request #17020 from webpack/ci-deps-main

ci: add ci to test with main branches
This commit is contained in:
Sean Larkin 2023-04-25 20:43:00 -07:00 committed by GitHub
commit 92346203a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -104,6 +104,15 @@ jobs:
- os: ubuntu-latest
node-version: 12.x
part: a
# Test with main branches of webpack dependencies
- os: ubuntu-latest
node-version: 16.x
part: a
use_main_branches: 1
- os: ubuntu-latest
node-version: 16.x
part: b
use_main_branches: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
@ -117,6 +126,10 @@ 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'
# 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'
- run: yarn link --frozen-lockfile || true