Skip to content

Commit

Permalink
build(test.yml): set node-version to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 17, 2021
1 parent 30923a8 commit d75937f
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Test

on:
"on":
push:
branches:
- master

pull_request:
types:
- opened
- synchronize

jobs:
test_matrix:
strategy:
Expand All @@ -18,11 +15,10 @@ jobs:
- 10
- 12
- 14
# TODO: fix problem with windows, then add "windows-latest" to list of os
os: [ubuntu-latest, macos-latest]

os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -31,14 +27,13 @@ jobs:
node-version: ${{ matrix.node-version }}
- uses: bahmutov/npm-install@v1
- run: npm run test:ci

# separate job to set as required in branch protection,
# as the build names above change each time Node versions change
test:
runs-on: ubuntu-latest
needs: test_matrix
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: bahmutov/npm-install@v1
- run: npm run lint

0 comments on commit d75937f

Please sign in to comment.