Skip to content

Commit 58ab469

Browse files
Move coverage to dedicated workflow
1 parent 7130964 commit 58ab469

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/coverage.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branches:
4+
- feature/*
5+
- bugfix/*
6+
- develop
7+
- release/*
8+
- hotfix/*
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Init
18+
run: npm ci
19+
- name: Run Coverage
20+
run: (npm run coverage 2>&1) | tee /tmp/coverage.out | cat /tmp/coverage.out
21+
- name: Check coverage
22+
run: cat /tmp/coverage.out | grep "Global test coverage"

.github/workflows/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ jobs:
2020
run: npm run test
2121
- name: Test build
2222
run: npm run build
23-
- name: Run Coverage
24-
run: npm run coverage
2523
# See Jenkinsfile-itest for "Run integration tests" step

0 commit comments

Comments
 (0)