diff --git a/.github/workflows/test-contracts.yml b/.github/workflows/test-contracts.yml index 53400b4..9e122c0 100644 --- a/.github/workflows/test-contracts.yml +++ b/.github/workflows/test-contracts.yml @@ -1,6 +1,6 @@ name: 🕵️‍♂️ Test smart contracts -on: [push, pull_request, pull_request_target, workflow_dispatch] +on: [push, pull_request, workflow_dispatch] concurrency: group: ${{github.workflow}}-${{github.ref}} @@ -143,16 +143,14 @@ jobs: FOUNDRY_PROFILE: default - name: Setup LCOV - if: ${{ (github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request') || (github.event.pull_request.head.repo.full_name != github.repository && github.event_name == 'pull_request_target') }} uses: hrishikesh-kadam/setup-lcov@v1 # See https://github.com/ScopeLift/foundry-template/blob/fd3875d2e99a65dec19431723d6516b4ed76746e/.github/workflows/ci.yml#L49-L78. - name: Remove unnecessary `test` directory - if: ${{ (github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request') || (github.event.pull_request.head.repo.full_name != github.repository && github.event_name == 'pull_request_target') }} run: lcov --remove lcov.info 'test/*' 'script/*' 'node_modules/*' --output-file lcov.info --rc lcov_branch_coverage=1 - name: Post coverage report - if: ${{ (github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request') || (github.event.pull_request.head.repo.full_name != github.repository && github.event_name == 'pull_request_target') }} + if: ${{ (github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request') }} uses: romeovs/lcov-reporter-action@v0.3.1 with: delete-old-comments: true @@ -160,7 +158,6 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Verify minimum coverage - if: ${{ (github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request') || (github.event.pull_request.head.repo.full_name != github.repository && github.event_name == 'pull_request_target') }} uses: zgosalvez/github-actions-report-lcov@v2 with: coverage-files: ./lcov.info