File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 3939
4040 runs-on : ubuntu-latest
4141
42+ env :
43+ coverage : ${{ github.event.pull_request && matrix.ghc_version == env.latest_ghc }}
44+
4245 steps :
4346 - uses : actions/checkout@v4
4447 with :
5760 .hpc
5861 restore-keys : ${{ matrix.ghc-version }}-
5962
60- - if : ${{ github.event.pull_request and matrix.ghc_version == env.latest_ghc }}
63+ - if : ${{ env.coverage }}
6164 run : |
6265 cat <<EOF >>cabal.project.local
6366 program-options
@@ -72,18 +75,18 @@ jobs:
7275 # one in this PR. This is important in order to get the same
7376 # coverage-counting logic on the PR as on master.
7477 - uses : actions/checkout@v4
75- if : ${{ github.event.pull_request and matrix.ghc_version == env.latest_ghc }}
78+ if : ${{ env.coverage }}
7679 with :
7780 ref : ${{ github.head_ref }}
7881 sparse-checkout :
7982 scripts
8083 clean : false
8184
82- - if : ${{ github.event.pull_request and matrix.ghc_version == env.latest_ghc }}
85+ - if : ${{ env.coverage }}
8386 run : ./scripts/generate-coverage-comment.sh constrained.tix | tee coverage-report-${{matrix.ref}}.md
8487
8588 - name : Upload coverage report
86- if : ${{ github.event.pull_request and matrix.ghc_version == env.latest_ghc }}
89+ if : ${{ env.coverage }}
8790 uses : actions/upload-artifact@v4
8891 with :
8992 name : constrained-${{matrix.ref}}-coverage
You can’t perform that action at this time.
0 commit comments