Skip to content

Commit 40a5b01

Browse files
authored
chore: run tests against multiple versions of html-webpack-plugin (#194)
1 parent 25bade4 commit 40a5b01

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ on:
1010

1111
jobs:
1212
test-node:
13-
name: Test on Node.js v${{ matrix.node-version }}
13+
name:
14+
# prettier-ignore
15+
Test on Node.js v${{ matrix.node-version }} and html-webpack-plugin v${{ matrix.html-plugin-version }}
1416
strategy:
1517
fail-fast: false
1618
matrix:
1719
node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 15.x]
20+
html-plugin-version: [3, 4]
1821
runs-on: ubuntu-latest
1922

2023
steps:
@@ -35,10 +38,14 @@ jobs:
3538
uses: actions/setup-node@v2
3639
with:
3740
node-version: ${{ matrix.node-version }}
38-
- run: yarn
41+
- name: install with html-webpack-plugin v${{matrix.html-plugin-version }}
42+
run: |
43+
yarn
44+
yarn add --dev html-webpack-plugin@${{matrix.html-plugin-version }}
3945
- name: run tests
4046
run: yarn travis
4147
- uses: codecov/codecov-action@v1
48+
if: ${{ matrix.html-plugin-version == 4 }}
4249
test-os:
4350
name: Test on ${{ matrix.os }} using Node.js LTS
4451
strategy:

0 commit comments

Comments
 (0)