Skip to content

Commit

Permalink
ci(test): test on latest webpack (if webpack@6 released)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gvozd committed Oct 13, 2021
1 parent b500e41 commit 7186493
Show file tree
Hide file tree
Showing 6 changed files with 12,419 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: npm install
- run: npm run lint
- run: npm run tsd
with:
node-version: 14.x
- run: yarn
- run: yarn lint
- run: yarn tsd

test:
name: Test - ${{ matrix.os }}/node@${{ matrix.node-version }}
Expand Down Expand Up @@ -46,8 +48,8 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test:coverage
- run: yarn --ignore-engines
- run: yarn test:coverage
- name: Unify different platfrom paths in coverage file
if: ${{ always() }}
shell: bash
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@
"ts-jest": "^24.3.0",
"tsd": "^0.17.0",
"typescript": "^3.9.7",
"webpack-1": "npm:webpack@1.15.0",
"webpack-2": "npm:webpack@2.7.0",
"webpack-3": "npm:webpack@3.12.0",
"webpack-4": "npm:webpack@4.46.0",
"webpack-5": "npm:webpack@5.57.1"
"webpack-1": "npm:webpack@1",
"webpack-2": "npm:webpack@2",
"webpack-3": "npm:webpack@3",
"webpack-4": "npm:webpack@4",
"webpack-5": "npm:webpack@5",
"webpack-latest": "npm:webpack@latest"
},
"peerDependencies": {
"@types/webpack": "^4.41.31"
Expand Down
1 change: 1 addition & 0 deletions test/VerbosityLevelAllVariants.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe.each([
['3', require('webpack-3/package.json').version, require('webpack-3')],
['4', require('webpack-4/package.json').version, require('webpack-4')],
['5', require('webpack-5/package.json').version, require('webpack-5')],
['latest', require('webpack-latest/package.json').version, require('webpack-latest')],
])('webpack@%s', (name, webpackVersion, webpack) => {
const testChangesFlow = (...args: PartialTestArguments) => _testChangesFlow(webpackVersion, webpack, ...args);
describe('VerbosityLevelAllVariants', () => {
Expand Down
1 change: 1 addition & 0 deletions test/WebpackNotifierPlugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ describe.each([
['3', require('webpack-3/package.json').version, require('webpack-3')],
['4', require('webpack-4/package.json').version, require('webpack-4')],
['5', require('webpack-5/package.json').version, require('webpack-5')],
['latest', require('webpack-latest/package.json').version, require('webpack-latest')],
])('webpack@%s', (name, webpackVersion, webpack) => {
const testChangesFlow = (...args: PartialTestArguments) => _testChangesFlow(webpackVersion, webpack, ...args);
describe('WebpackNotifierPlugin', () => {
Expand Down
Loading

0 comments on commit 7186493

Please sign in to comment.