-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vinicius Reis <[email protected]>
- Loading branch information
Vinicius Reis
committed
Aug 10, 2022
1 parent
8e5c70b
commit 290d994
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Node | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [ 14, 16, 18 ] | ||
name: Test Node v${{ matrix.node }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
cache: 'npm' | ||
- name: install dependencies | ||
run: npm ci | ||
- name: build package | ||
run: npm run build | ||
- name: run tests | ||
run: npm run test | ||
|
||
summary: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
if: always() | ||
name: test-summary | ||
steps: | ||
- name: Summary status | ||
run: if ${{ needs.test.result != 'success' && needs.test.result != 'skipped' }}; then exit 1; fi |