fix: Switching to local codecov script (#14170)

* Switching to local codecov script

* Adding license / update instructions

* Fixing FE build

* Fixing FE codecov test
This commit is contained in:
Craig Rueda 2021-04-16 09:26:50 -07:00 committed by GitHub
parent a3e302374b
commit 8db7be16da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1910 additions and 13 deletions

View File

@ -131,12 +131,7 @@ testdata() {
codecov() {
say "::group::Upload code coverage"
local codecovScript="${HOME}/codecov.sh"
# download bash script if needed
if [[ ! -f "$codecovScript" ]]; then
curl -s https://codecov.io/bash >"$codecovScript"
fi
bash "$codecovScript" "$@"
bash ".github/workflows/codecov.sh" "$@"
say "::endgroup::"
}

1903
.github/workflows/codecov.sh vendored Executable file

File diff suppressed because it is too large Load Diff

View File

@ -44,5 +44,4 @@ jobs:
- name: Upload code coverage
if: steps.check.outcome == 'failure'
working-directory: ./superset-frontend
run: |
bash <(curl -s https://codecov.io/bash) -c -F javascript
run: ../.github/workflows/codecov.sh -c -F javascript

View File

@ -81,7 +81,7 @@ jobs:
- name: Upload code coverage
if: steps.check.outcome == 'failure'
run: |
bash <(curl -s https://codecov.io/bash) -c -F python -F presto
bash .github/workflows/codecov.sh -c -F python -F presto
test-postgres-hive:
if: github.event.pull_request.draft == false
@ -156,4 +156,4 @@ jobs:
- name: Upload code coverage
if: steps.check.outcome == 'failure'
run: |
bash <(curl -s https://codecov.io/bash) -c -F python -F hive
bash .github/workflows/codecov.sh -c -F python -F hive

View File

@ -70,7 +70,7 @@ jobs:
- name: Upload code coverage
if: steps.check.outcome == 'failure'
run: |
bash <(curl -s https://codecov.io/bash) -c -F python -F mysql
bash .github/workflows/codecov.sh -c -F python -F mysql
test-postgres:
if: github.event.pull_request.draft == false
@ -134,7 +134,7 @@ jobs:
- name: Upload code coverage
if: steps.check.outcome == 'failure'
run: |
bash <(curl -s https://codecov.io/bash) -c -F python -F postgres
bash .github/workflows/codecov.sh -c -F python -F postgres
test-sqlite:
if: github.event.pull_request.draft == false
@ -190,4 +190,4 @@ jobs:
- name: Upload code coverage
if: steps.check.outcome == 'failure'
run: |
bash <(curl -s https://codecov.io/bash) -c -F python -F sqlite
bash .github/workflows/codecov.sh -c -F python -F sqlite