Skip to content

Commit 81aac3a

Browse files
authored
Merge pull request #35 from node-oauth/feature-ci-multiple-targets
feature: ci with multiple targets
2 parents a6c257f + 50caf40 commit 81aac3a

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,27 @@ jobs:
3939
runs-on: ubuntu-latest
4040
# uncomment when a linter is added
4141
# needs: [lintjs]
42+
strategy:
43+
matrix:
44+
node: [12, 14, 16]
4245
steps:
43-
- name: checkout
46+
- name: Checkout ${{ matrix.node }}
4447
uses: actions/checkout@v2
4548

46-
- name: setup node
49+
- name: Setup node ${{ matrix.node }}
4750
uses: actions/setup-node@v1
4851
with:
49-
node-version: '12.x'
52+
node-version: ${{ matrix.node }}
5053

51-
- name: cache dependencies
54+
- name: Cache dependencies ${{ matrix.node }}
5255
uses: actions/cache@v1
5356
with:
5457
path: ~/.npm
55-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
58+
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
5659
restore-keys: |
57-
${{ runner.os }}-node-
60+
${{ runner.os }}-node-${{ matrix.node }}
5861
- run: npm ci
59-
- run: npm run test
60-
# uncomment when coverage is added
61-
# - run: npm run test:coverage
62+
- run: npm run test:coverage
6263

6364
# ----------------------------------
6465
# uncomment when a linter is added

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)