Skip to content

Commit

Permalink
chore: run tests on node 16 and 17 (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 7, 2022
1 parent 42a345a commit 6a994ea
Showing 1 changed file with 16 additions and 41 deletions.
57 changes: 16 additions & 41 deletions .github/workflows/node.js.yml
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 15.x]
node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 15.x, 16.x, 17.x]
html-plugin-version: [3, 4, 5]
webpack-version: [4, 5]
exclude:
Expand All @@ -33,6 +33,8 @@ jobs:
webpack-version: 5
- node-version: 8.x
html-plugin-version: 5
- node-version: 10.x
html-plugin-version: 5
include:
- node-version: 10.x
install-puppeteer: true
Expand All @@ -45,23 +47,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: install with html-webpack-plugin v${{matrix.html-plugin-version }} and webpack v${{ matrix.webpack-version }}
run: |
yarn
Expand All @@ -86,20 +79,11 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v2.1.5
with:
node-version: 14.x
node-version: 'lts/*'
cache: yarn
- run: yarn
- name: install puppeteer
run: |
Expand All @@ -124,9 +108,9 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 'lts/*'
- run: yarn
- run: yarn lint

Expand All @@ -136,22 +120,13 @@ jobs:
needs: [lint, test-node, test-os]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 'lts/*'
cache: yarn
- name: install
run: yarn
- run: npx semantic-release@17
Expand Down

0 comments on commit 6a994ea

Please sign in to comment.