-
Notifications
You must be signed in to change notification settings - Fork 36
40 lines (32 loc) · 1.05 KB
/
coverage-main-branch.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
name: Test coverage for main branch # default-branch.yml
on:
push:
branches:
- main
permissions:
# allow dependabot to execute this workflow
pull-requests: write
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: Test and upload coverage
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.ref }}
fetch-depth: 1000
- uses: actions/setup-node@v4
with:
node-version-file: ./package.json
- run: npm ci --ignore-scripts
- name: Run mcdev-tests with coverage
run: npm run coverage
- name: Prepare for Report Coverage (mini)
run: |
npx c8 report --reporter json-summary --exclude-after-remap false
- name: Upload coverage artifact
uses: actions/upload-artifact@v3
with:
name: test-coverage-output
path: coverage