Skip to content

Commit e4d871d

Browse files
authored
chore: send test coverage report to codacy (#12)
Co-authored-by: rick <[email protected]>
1 parent 5c53112 commit e4d871d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
1515
- name: Unit Test
1616
run: |
1717
make test
18+
- name: Report
19+
if: github.actor == 'linuxsuren'
20+
env:
21+
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
22+
run: |
23+
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial --force-coverage-parser go -r coverage.out
24+
bash <(curl -Ls https://coverage.codacy.com/get.sh) final
1825
1926
Build:
2027
runs-on: ubuntu-20.04

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/707e613bf0d84c3cb1367f98e4b1e463)](https://app.codacy.com/gh/LinuxSuRen/atest-ext-store-orm/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
2+
13
# atest-ext-store-orm
24
ORM database Store Extension of API Testing
35

0 commit comments

Comments
 (0)