ci: dont submit coverage if tests din't run
This commit is contained in:
parent
b7a7f97a7a
commit
c9da8d87e5
3 changed files with 16 additions and 1 deletions
5
.github/workflows/server-mariadb-tests.yml
vendored
5
.github/workflows/server-mariadb-tests.yml
vendored
|
|
@ -20,6 +20,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
|
||||
outputs:
|
||||
build: ${{ steps.check-build.outputs.build }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
@ -144,9 +147,11 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
|
||||
- name: Download artifacts
|
||||
if: ${{ needs.test.outputs.build == 'strawberry' }}
|
||||
uses: actions/download-artifact@v3
|
||||
|
||||
- name: Upload coverage data
|
||||
if: ${{ needs.test.outputs.build == 'strawberry' }}
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: MariaDB
|
||||
|
|
|
|||
5
.github/workflows/server-postgres-tests.yml
vendored
5
.github/workflows/server-postgres-tests.yml
vendored
|
|
@ -19,6 +19,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
|
||||
outputs:
|
||||
build: ${{ steps.check-build.outputs.build }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
|
@ -147,9 +150,11 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
|
||||
- name: Download artifacts
|
||||
if: ${{ needs.test.outputs.build == 'strawberry' }}
|
||||
uses: actions/download-artifact@v3
|
||||
|
||||
- name: Upload coverage data
|
||||
if: ${{ needs.test.outputs.build == 'strawberry' }}
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: Postgres
|
||||
|
|
|
|||
7
.github/workflows/ui-tests.yml
vendored
7
.github/workflows/ui-tests.yml
vendored
|
|
@ -17,6 +17,8 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
outputs:
|
||||
build: ${{ steps.check-build.outputs.build }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
@ -184,18 +186,21 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
- name: Download artifacts
|
||||
if: ${{ needs.test.outputs.build == 'strawberry' }}
|
||||
uses: actions/download-artifact@v3
|
||||
|
||||
- name: Upload python coverage data
|
||||
if: ${{ needs.test.outputs.build == 'strawberry' }}
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: MariaDB
|
||||
name: UIBackend
|
||||
fail_ci_if_error: true
|
||||
verbose: true
|
||||
files: ./coverage-py-1/coverage.xml,./coverage-py-2/coverage.xml,./coverage-py-3/coverage.xml
|
||||
flags: server-ui
|
||||
|
||||
- name: Upload JS coverage data
|
||||
if: ${{ needs.test.outputs.build == 'strawberry' }}
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
name: Cypress
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue