-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.16 KB
/
coverage.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: ' 🧪 Coverage'
on:
workflow_dispatch:
pull_request:
paths:
- '/*.js'
- '**/*.ts'
- '*-lock.yaml'
- 'package.json'
- '.github/workflows/coverage.yml'
- '!docs/**'
- '!website/**'
push:
branches:
- main
paths:
- '**/package.json'
- '**/*-lock.yaml'
- '**/*.ts'
- '**/*.js'
- '.github/workflows/coverage.yml'
- '!docs/**'
- '!website/**'
permissions:
contents: read
jobs:
coverage:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: build
run: |
pnpm build
- run: pnpm run coverage
- name: Upload coverage Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # 2.2.3
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}