-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.05 KB
/
coverage.yml
File metadata and controls
42 lines (40 loc) · 1.05 KB
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
35
36
37
38
39
40
41
42
name: 'coverage'
on:
pull_request:
branches:
- main
paths:
- 'src/**'
- '*.json'
- '*.js'
- '*.ts'
jobs:
coverage:
continue-on-error: true
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set npm token
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "@linode:registry=https://npm.pkg.github.com/linode" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
echo '::set-output name=diff::1'
- name: Install Node
run: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install
nvm use
node -v
npm install
- name: Compare Coverage
continue-on-error: true
uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: npm run test
annotations: none