-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (32 loc) · 916 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Test Pull Request
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
name: Run js tests
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
npm run lint
npm run build
npm run docs
- name: Run code coverage test
run: npm run cover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3