Skip to content

Commit 9234620

Browse files
authored
Merge pull request #17020 from webpack/ci-deps-main
ci: add ci to test with main branches
2 parents 2552028 + e106dc9 commit 9234620

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/test.yml

+13
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ jobs:
104104
- os: ubuntu-latest
105105
node-version: 12.x
106106
part: a
107+
# Test with main branches of webpack dependencies
108+
- os: ubuntu-latest
109+
node-version: 16.x
110+
part: a
111+
use_main_branches: 1
112+
- os: ubuntu-latest
113+
node-version: 16.x
114+
part: b
115+
use_main_branches: 1
107116
runs-on: ${{ matrix.os }}
108117
steps:
109118
- uses: actions/checkout@v3
@@ -117,6 +126,10 @@ jobs:
117126
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
118127
yarn --frozen-lockfile --ignore-engines
119128
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
129+
# Install main version of our deps
130+
- 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
131+
if: matrix.use_main_branches == '1'
132+
# Install dependencies for LTS node versions
120133
- run: yarn --frozen-lockfile
121134
if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
122135
- run: yarn link --frozen-lockfile || true

0 commit comments

Comments
 (0)