File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -138,20 +138,20 @@ jobs:
138138 make check-format
139139 make check-lint
140140
141- # - name: Run tests with coverage
142- # if: ${{ env.PG_MAJOR }} == 17 || ${{ matrix.arch == 'x64' }}
143- # run: |
144- # make check-with-coverage
145-
146141 - name : Run tests without coverage
147- if : ${{ env.PG_MAJOR }} != 17 || ${{ matrix.arch != 'x64' }}
142+ if : ${{ env.PG_MAJOR != '17' || matrix.arch != 'x64' }}
148143 run : |
149144 make check
150145
151- # - name: Upload coverage report to Codecov
152- # if: ${{ env.PG_MAJOR }} == 17 && ${{ matrix.arch == 'x64' }}
153- # uses: codecov/codecov-action@v4
154- # with:
155- # fail_ci_if_error: true
156- # files: ./lcov.info
157- # token: ${{ secrets.CODECOV_TOKEN }}
146+ - name : Run tests with coverage
147+ if : ${{ env.PG_MAJOR == '17' && matrix.arch == 'x64' }}
148+ run : |
149+ make check-with-coverage
150+
151+ - name : Upload coverage report to Codecov
152+ if : ${{ env.PG_MAJOR == '17' && matrix.arch == 'x64' }}
153+ uses : codecov/codecov-action@v4
154+ with :
155+ fail_ci_if_error : true
156+ files : ./lcov.info
157+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ check: build stop-containers start-containers
4747 cargo pgrx test pg$(PG_MAJOR ) --no-default-features
4848
4949check-with-coverage : init-pgrx stop-containers start-containers
50- cargo llvm-cov show-env --export-prefix > llvm-cov.env
51- . ./llvm-cov.env
52- cargo llvm-cov clean
53- cargo build --features " pg$( PG_MAJOR) , pg_test" --no-default-features
54- cargo pgrx test pg$(PG_MAJOR ) --no-default-features
50+ cargo llvm-cov show-env --export-prefix > llvm-cov.env && \
51+ . ./llvm-cov.env && \
52+ cargo llvm-cov clean && \
53+ cargo build --features " pg$( PG_MAJOR) , pg_test" --no-default-features && \
54+ cargo pgrx test pg$(PG_MAJOR ) --no-default-features && \
5555 cargo llvm-cov report --lcov > lcov.info
5656
5757check-s3 : build stop-minio start-minio
You can’t perform that action at this time.
0 commit comments