Skip to content
Merged
Prev Previous commit
Merge branch 'main' into webpack5fix
  • Loading branch information
SimenB committed Feb 20, 2021
commit e53408fd66adbbe3dd05e430c0f1c3ef371454ba
21 changes: 16 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ on:

jobs:
test-node:
name:
# prettier-ignore
Test on Node.js v${{ matrix.node-version }} and html-webpack-plugin v${{ matrix.html-plugin-version }} and webpack v${{ matrix.webpack-version }}
name: Test on Node.js v${{ matrix.node-version }} and html-webpack-plugin v${{ matrix.html-plugin-version }} and webpack v${{ matrix.webpack-version }}
strategy:
fail-fast: false
matrix:
Expand All @@ -35,6 +33,15 @@ jobs:
webpack-version: 5
- node-version: 8.x
html-plugin-version: 5
include:
- node-version: 10.x
install-puppeteer: true
- node-version: 12.x
install-puppeteer: true
- node-version: 14.x
install-puppeteer: true
- node-version: 15.x
install-puppeteer: true
runs-on: ubuntu-latest

steps:
Expand All @@ -55,13 +62,17 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# prettier-ignore
- name: install with html-webpack-plugin v${{matrix.html-plugin-version }} and webpack v${{ matrix.webpack-version }}
run: |
yarn
yarn add --dev html-webpack-plugin@${{matrix.html-plugin-version }} webpack@${{ matrix.webpack-version }}
git checkout yarn.lock

- name: install puppeteer
if: ${{ matrix.install-puppeteer }}
run: |
yarn add --dev puppeteer
yarn example
git checkout yarn.lock
- name: run tests
run: yarn cover
- uses: codecov/codecov-action@v1
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.