From dcde359bceab14e46064bab9eb18d30afeb27fc7 Mon Sep 17 00:00:00 2001 From: Liu Liu Date: Sun, 9 Jun 2024 19:00:02 -0400 Subject: [PATCH] Add upload step for analyze / coverage. --- .github/workflows/analyze.yaml | 6 ++++++ .github/workflows/coverage.yaml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/analyze.yaml b/.github/workflows/analyze.yaml index caeee4dad..2778c4bdb 100644 --- a/.github/workflows/analyze.yaml +++ b/.github/workflows/analyze.yaml @@ -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 diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 3b64e488c..a0be126ea 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -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