Skip to content

Commit 2295600

Browse files
committed
improve workflow
1 parent 1ed7ade commit 2295600

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/upload-to-codacy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,21 @@ jobs:
1111
strategy:
1212
fail-fast: true
1313
name: upload-coverage
14+
1415
steps:
16+
- name: Setup logs directory
17+
run: mkdir -p build/logs
18+
19+
- name: Download clover.xml artifact
20+
uses: actions/download-artifact@v3
21+
with:
22+
name: clover.xml
23+
path: build/logs
24+
to: build/logs
25+
1526
- name: Upload Coverage to Codacy
1627
shell: bash
1728
env:
1829
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
30+
1931
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r build/logs/clover.xml

0 commit comments

Comments
 (0)