Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fe8f49

Browse files
committed
chore(ci): factorize coverage
1 parent 0580295 commit 1fe8f49

File tree

1 file changed

+4
-28
lines changed

1 file changed

+4
-28
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: rx-angular CI
1+
name: CI
22

33
on:
44
push:
@@ -117,37 +117,13 @@ jobs:
117117
run: yarn nx-cloud stop-all-agents
118118

119119
# Upload coverage reports to Codecov
120-
- name: Upload state coverage
120+
- name: Upload coverage
121121
if: steps.test.outcome == 'success'
122122
uses: codecov/codecov-action@v3
123123
with:
124124
token: ${{ secrets.CODECOV_TOKEN }}
125-
files: coverage/state/lcov.info
126-
flags: state
127-
128-
- name: Upload template coverage
129-
if: steps.test.outcome == 'success'
130-
uses: codecov/codecov-action@v3
131-
with:
132-
token: ${{ secrets.CODECOV_TOKEN }}
133-
files: coverage/template/lcov.info
134-
flags: template
135-
136-
- name: Upload cdk coverage
137-
if: steps.test.outcome == 'success'
138-
uses: codecov/codecov-action@v3
139-
with:
140-
token: ${{ secrets.CODECOV_TOKEN }}
141-
files: coverage/cdk/lcov.info
142-
flags: cdk
143-
144-
- name: Upload eslint-plugin coverage
145-
if: steps.test.outcome == 'success'
146-
uses: codecov/codecov-action@v3
147-
with:
148-
token: ${{ secrets.CODECOV_TOKEN }}
149-
files: coverage/eslint-plugin/lcov.info
150-
flags: eslint-plugin
125+
files: coverage/state/lcov.info, coverage/template/lcov.info, coverage/cdk/lcov.info, coverage/isr/lcov.info, coverage/eslint-plugin/lcov.info
126+
flags: state, template, cdk, isr, eslint-plugin
151127

152128
# The docs project is built in a separate job because it requires Node.js 16
153129
build-docs:

0 commit comments

Comments
 (0)