Skip to content

Commit

Permalink
ci: fix coverage output check
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Jan 29, 2024
1 parent 44230c3 commit bafcfe2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/monorepo-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
id: check-coverage
working-directory: ${{ matrix.module }}
run: |
if [ $(wc -l <coverage.out) -gt 1 ]; then
if [[ -f coverage.out && $(wc -l <coverage.out) -gt 1 ]]; then
echo "coverage_data_exists=true" >> $GITHUB_OUTPUT
else
echo "coverage_data_exists=false" >> $GITHUB_OUTPUT
Expand All @@ -75,7 +75,7 @@ jobs:
run: |
module_name="${{ matrix.module }}"
clean_module_name="${module_name#./}" # Remove leading ./
if [ "$clean_module_name" == "." ]; then
if [[ "$clean_module_name" == "." ]]; then
clean_module_name="happy"
fi
echo "clean_module_name=$clean_module_name" >> $GITHUB_OUTPUT
Expand All @@ -89,8 +89,6 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.module }}/coverage.out



finish-coverage-report:
needs: coverage
runs-on: ubuntu-latest
Expand Down

0 comments on commit bafcfe2

Please sign in to comment.