From 145577e1c2a40aa42d322880ee5ee32cc33d8453 Mon Sep 17 00:00:00 2001 From: Kelvin Wong <100633163+kwong0222@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:29:27 -0700 Subject: [PATCH] download coverage artifact --- .github/workflows/tests.yml | 10 +++++++++- .octocov.yml | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ad366ea..7ed0cf3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: - name: Upload coverage results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: include-hidden-files: 'true' name: coverage-results @@ -33,5 +33,13 @@ jobs: needs: rspec runs-on: ubuntu-latest steps: + - name: Download coverage results + uses: actions/download-artifact@v4 + with: + name: coverage-results + path: app/coverage + - name: Coverage report uses: k1LoW/octocov-action@1ad702b3118b6a055c00b01db68ca0d9f6641dbc # v1.4.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.octocov.yml b/.octocov.yml index 81f8f45..433f6ec 100644 --- a/.octocov.yml +++ b/.octocov.yml @@ -1,6 +1,7 @@ # generated by octocov init coverage: - paths: coverage + paths: + - coverage acceptable: 100% comment: if: is_pull_request