Skip to content

Commit

Permalink
Add upload step for analyze / coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Jun 9, 2024
1 parent c7746ae commit dcde359
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ jobs:
- name: analyze
run: |
cd lib && scan-build -o ../_analyze --use-cc clang make
- name: upload report
run: |
cd _analyze
FILE=$(ls)
mv $FILE /var/public_html/analyze/$FILE
echo "View [$FILE](https://ci.libccv.org/analyze/$FILE)" >> $GITHUB_STEP_SUMMARY
8 changes: 7 additions & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
- name: tests
run: |
make -C test check
- name: coverage report
- name: generate report
run: |
cd test && ./cover-gen.rb ../_coverage
- name: upload report
run: |
cd _coverage
FILE=$(ls)
mv $FILE /var/public_html/coverage/$FILE
echo "View [$FILE](https://ci.libccv.org/coverage/$FILE)" >> $GITHUB_STEP_SUMMARY

0 comments on commit dcde359

Please sign in to comment.