38 lines
735 B
YAML
38 lines
735 B
YAML
name: JS Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
jest:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-versions: [12.x]
|
|
|
|
name: node${{ matrix.node-versions }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up node ${{ matrix.node-versions }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-versions: ${{ matrix.node-versions }}
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Test
|
|
run: npm run test:coverage
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./coverage/coverage-final.json
|
|
flags: javascript
|
|
fail_ci_if_error: true
|