Skip to content

Commit ef6e7db

Browse files
ci: add ci to test with main branches
1 parent 8ce07a1 commit ef6e7db

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ jobs:
105105
- os: ubuntu-latest
106106
node-version: 12.x
107107
part: a
108+
# Test with main branches of webpack dependencies
109+
- os: ubuntu-latest
110+
node-version: 16.x
111+
part: [a, b]
112+
use_main_branches: 1
108113
runs-on: ${{ matrix.os }}
109114
steps:
110115
- uses: actions/checkout@v3
@@ -118,6 +123,10 @@ jobs:
118123
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
119124
yarn --frozen-lockfile --ignore-engines
120125
if: matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
126+
# Install main version of our deps
127+
- run: yarn upgrade enhanced-resolve@webpack/enhanced-resolve#main loader-runner@webpack/loader-runner#main schema-utils@webpack/schema-utils#master webpack-sources@webpack/webpack-sources#main watchpack@webpack/watchpack#main tapable@webpack/tapable#master
128+
if: matrix.use_main_branches == '1'
129+
# Install dependencies for LTS node versions
121130
- run: yarn --frozen-lockfile
122131
if: matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
123132
- run: yarn link --frozen-lockfile || true

0 commit comments

Comments
 (0)