Browse Source

update codecov CI

blueloveTH 2 years ago
parent
commit
3048e0dde7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      .github/workflows/main.yml

+ 2 - 1
.github/workflows/main.yml

@@ -58,10 +58,11 @@ jobs:
     - name: Unit Test with Coverage
     - name: Unit Test with Coverage
       run: bash run_tests.sh
       run: bash run_tests.sh
     - name: Upload coverage reports to Codecov
     - name: Upload coverage reports to Codecov
-      uses: codecov/codecov-action@v3
+      uses: codecov/codecov-action@v4
       with:
       with:
         token: ${{ secrets.CODECOV_TOKEN }}
         token: ${{ secrets.CODECOV_TOKEN }}
         directory: .coverage
         directory: .coverage
+        fail_ci_if_error: true
       if: github.ref == 'refs/heads/main'
       if: github.ref == 'refs/heads/main'
     - name: Compile
     - name: Compile
       run: |
       run: |