Skip to content

feature: ci with multiple targets #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,27 @@ jobs:
runs-on: ubuntu-latest
# uncomment when a linter is added
# needs: [lintjs]
strategy:
matrix:
node: [12, 14, 16]
steps:
- name: checkout
- name: Checkout ${{ matrix.node }}
uses: actions/checkout@v2

- name: setup node
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: '12.x'
node-version: ${{ matrix.node }}

- name: cache dependencies
- name: Cache dependencies ${{ matrix.node }}
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-node-${{ matrix.node }}
- run: npm ci
- run: npm run test
# uncomment when coverage is added
# - run: npm run test:coverage
- run: npm run test:coverage

# ----------------------------------
# uncomment when a linter is added
Expand Down
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.