mirror of https://github.com/citusdata/citus.git
codecov and codeclimate
parent
d5f174705e
commit
88c92cc766
|
@ -5,13 +5,16 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
- uses: codecov/codecov-action@v3
|
||||||
|
with:
|
||||||
|
flags: ${{ inputs.flags }}
|
||||||
- name: Create codeclimate coverage
|
- name: Create codeclimate coverage
|
||||||
run: |-
|
run: |-
|
||||||
lcov --directory . --capture --output-file lcov.info
|
lcov --directory . --capture --output-file lcov.info
|
||||||
lcov --remove lcov.info -o lcov.info '/usr/*'
|
lcov --remove lcov.info -o lcov.info '/usr/*'
|
||||||
sed "s=^SF:$PWD/=SF:=g" -i lcov.info # relative pats are required by codeclimate
|
sed "s=^SF:$PWD/=SF:=g" -i lcov.info # relative pats are required by codeclimate
|
||||||
mkdir -p /tmp/codeclimate
|
mkdir -p /tmp/codeclimate
|
||||||
cc-test-reporter format-coverage -t lcov -o /tmp/codeclimate/${{ github.job }}.json lcov.info
|
cc-test-reporter format-coverage -t lcov -o /tmp/codeclimate/${{ inputs.flags }}.json lcov.info
|
||||||
shell: bash
|
shell: bash
|
||||||
- uses: actions/upload-artifact@v3.1.1
|
- uses: actions/upload-artifact@v3.1.1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -180,7 +180,7 @@ jobs:
|
||||||
- uses: "./.github/actions/upload_coverage"
|
- uses: "./.github/actions/upload_coverage"
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
flags: test_${{ env.PG_MAJOR }},${{ matrix.suite }}_${{ matrix.make }}
|
flags: ${{ env.PG_MAJOR }}_${{ matrix.suite }}_${{ matrix.make }}
|
||||||
prepare_parallelization_matrix_6:
|
prepare_parallelization_matrix_6:
|
||||||
name: Parallel 6
|
name: Parallel 6
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -231,7 +231,7 @@ jobs:
|
||||||
- uses: "./.github/actions/upload_coverage"
|
- uses: "./.github/actions/upload_coverage"
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
flags: test_${{ env.pg_major }},upgrade
|
flags: ${{ env.pg_major }}_upgrade
|
||||||
test-pg-upgrade:
|
test-pg-upgrade:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
@ -272,7 +272,7 @@ jobs:
|
||||||
- uses: "./.github/actions/upload_coverage"
|
- uses: "./.github/actions/upload_coverage"
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
flags: test_${{ env.old_pg_major }}_${{ env.new_pg_major }},upgrade
|
flags: ${{ env.old_pg_major }}_${{ env.new_pg_major }}_upgrade
|
||||||
test-citus-upgrade:
|
test-citus-upgrade:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
@ -314,9 +314,11 @@ jobs:
|
||||||
- uses: "./.github/actions/upload_coverage"
|
- uses: "./.github/actions/upload_coverage"
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
flags: test_${{ env.pg_major }},upgrade
|
flags: ${{ env.pg_major }}_upgrade
|
||||||
upload-coverage:
|
upload-coverage:
|
||||||
if: always()
|
if: always()
|
||||||
|
env:
|
||||||
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ${{ vars.test_image_name }}:${{ vars.pg15_version }}${{ vars.image_suffix }}
|
image: ${{ vars.test_image_name }}:${{ vars.pg15_version }}${{ vars.image_suffix }}
|
||||||
|
@ -326,14 +328,14 @@ jobs:
|
||||||
- test-citus-upgrade
|
- test-citus-upgrade
|
||||||
- test-pg-upgrade
|
- test-pg-upgrade
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3.0.1
|
- uses: actions/download-artifact@v3.0.1
|
||||||
with:
|
with:
|
||||||
name: "codeclimate"
|
name: "codeclimate"
|
||||||
path: "codeclimate"
|
path: "codeclimate"
|
||||||
- name: Upload coverage results to Code Climate
|
- name: Upload coverage results to Code Climate
|
||||||
run: |-
|
run: |-
|
||||||
cc-test-reporter sum-coverage codeclimate/*.json -o total.json
|
cc-test-reporter sum-coverage codeclimate/*.json -o total.json
|
||||||
cc-test-reporter upload-coverage -i total.json
|
cc-test-reporter upload-coverage -i total.json
|
||||||
ch_benchmark:
|
ch_benchmark:
|
||||||
if: startsWith(github.ref, 'refs/heads/ch_benchmark/')
|
if: startsWith(github.ref, 'refs/heads/ch_benchmark/')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue