Skip to content

Commit 2e3daf2

Browse files
committed
ci: improve codecov integration
1 parent 75d2e5d commit 2e3daf2

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.codecov.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
comment:
2+
layout: diff, flags, files

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

+18
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,21 @@ jobs:
2424
uses: JamesIves/github-pages-deploy-action@v4
2525
with:
2626
folder: dist/angular-intl-demo
27+
28+
report-coverage:
29+
concurrency: ci-${{ github.ref }}
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
35+
- name: Install
36+
run: npm ci
37+
38+
- name: test
39+
run: npm run test -- --watch=false --browsers=ChromeHeadless
40+
41+
- name: Upload coverage reports to Codecov
42+
uses: codecov/codecov-action@v3
43+
env:
44+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)