Skip to content

Commit

Permalink
chore(ci): add Node v17 to test matrix (mochajs#4777)
Browse files Browse the repository at this point in the history
Signed-off-by: Outsider <outsideris@gmail.com>
  • Loading branch information
outsideris authored and KuznetsovRoman committed Sep 6, 2022
1 parent b106559 commit 44874a7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/mocha.yml
Expand Up @@ -32,6 +32,7 @@ jobs:
- 12
- 14
- 16
- 17
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -47,15 +48,15 @@ jobs:
steps:
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- uses: actions/checkout@v2
- name: 'Cache node_modules'
uses: actions/cache@v2
with:
path: '~/.npm'
key: "ubuntu-latest-node-v14-${{ hashFiles('**/package-lock.json') }}"
key: "ubuntu-latest-node-v16-${{ hashFiles('**/package-lock.json') }}"
restore-keys: |
ubuntu-latest-node-v14-
ubuntu-latest-node-v16-
- name: Install Dependencies
run: npm ci --ignore-scripts
- name: 'Check lint'
Expand All @@ -76,9 +77,10 @@ jobs:
- 12
- 14
- 16
- 17
include:
- os: ubuntu-latest
node: 14
node: 16
env:
COVERAGE: 1
steps:
Expand Down Expand Up @@ -181,17 +183,17 @@ jobs:
steps:
- uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- uses: actions/checkout@v2
- name: 'Cache node_modules'
uses: actions/cache@v2
with:
path: '~/.npm'
# this key is different than above, since we are running scripts
# (builds, postinstall lifecycle hooks, etc.)
key: "ubuntu-latest-node-full-v14-${{ hashFiles('**/package-lock.json') }}"
key: "ubuntu-latest-node-full-v16-${{ hashFiles('**/package-lock.json') }}"
restore-keys: |
ubuntu-latest-node-full-v14-
ubuntu-latest-node-full-v16-
- name: Install Dependencies
run: npm ci
- name: Run Browser Tests
Expand Down

0 comments on commit 44874a7

Please sign in to comment.