-
Notifications
You must be signed in to change notification settings - Fork 183
42 lines (38 loc) · 1.01 KB
/
coverage.yml
File metadata and controls
42 lines (38 loc) · 1.01 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:
- name: Checkout PR branch
uses: actions/checkout@v6
- 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: Install gucci
run: |
GUCCI_VERSION="1.6.13"
curl -L -o gucci https://github.com/noqcks/gucci/releases/download/v${GUCCI_VERSION}/gucci-v${GUCCI_VERSION}-linux-amd64
chmod +x gucci
sudo mv gucci /usr/local/bin/
- name: Compare Coverage
continue-on-error: true
uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: npm run test:ts
annotations: none