-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 843 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: Pull Request Tests
on:
pull_request:
branches: [ '*' ]
types:
- opened
- synchronize
jobs:
run-tests:
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
working-directory: ./.github/scripts
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
check-latest: true
cache: 'npm'
cache-dependency-path: ${{ env.working-directory }}/package-lock.json
- run: npm ci
working-directory: ${{ env.working-directory }}
- run: npm test
working-directory: ${{ env.working-directory }}
- uses: tintef/nyc-reporter-action@0.2.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_COVERAGE_FOLDER: true
WORKING_DIRECTORY: ${{ env.working-directory }}