mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Quote results before piping to gocovmerge
This commit is contained in:
parent
ca06c22355
commit
949fc00b28
49
.github/workflows/schedules.yaml
vendored
49
.github/workflows/schedules.yaml
vendored
|
|
@ -22,7 +22,24 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- label: SQLite
|
- label: SQLite native
|
||||||
|
|
||||||
|
- label: SQLite Cgo
|
||||||
|
cgo: 1
|
||||||
|
|
||||||
|
- label: SQLite native, full HTTP APIs
|
||||||
|
api: full-http
|
||||||
|
|
||||||
|
- label: SQLite Cgo, full HTTP APIs
|
||||||
|
api: full-http
|
||||||
|
cgo: 1
|
||||||
|
|
||||||
|
- label: PostgreSQL
|
||||||
|
postgres: postgres
|
||||||
|
|
||||||
|
- label: PostgreSQL, full HTTP APIs
|
||||||
|
postgres: postgres
|
||||||
|
api: full-http
|
||||||
container:
|
container:
|
||||||
image: matrixdotorg/sytest-dendrite:latest
|
image: matrixdotorg/sytest-dendrite:latest
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -87,7 +104,7 @@ jobs:
|
||||||
run: go install github.com/wadey/gocovmerge@latest
|
run: go install github.com/wadey/gocovmerge@latest
|
||||||
- name: Run gocovmerge
|
- name: Run gocovmerge
|
||||||
run: |
|
run: |
|
||||||
find -name 'integrationcover.log' | xargs gocovmerge | grep -Ev 'relayapi|setup/mscs|api_trace' > sytest.cov
|
find -name 'integrationcover.log' -printf '"%p"\n' | xargs gocovmerge | grep -Ev 'relayapi|setup/mscs|api_trace' > sytest.cov
|
||||||
go tool cover -func=sytest.cov
|
go tool cover -func=sytest.cov
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|
@ -107,6 +124,26 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- label: SQLite native
|
- label: SQLite native
|
||||||
cgo: 0
|
cgo: 0
|
||||||
|
|
||||||
|
- label: SQLite Cgo
|
||||||
|
cgo: 1
|
||||||
|
|
||||||
|
- label: SQLite native, full HTTP APIs
|
||||||
|
api: full-http
|
||||||
|
cgo: 0
|
||||||
|
|
||||||
|
- label: SQLite Cgo, full HTTP APIs
|
||||||
|
api: full-http
|
||||||
|
cgo: 1
|
||||||
|
|
||||||
|
- label: PostgreSQL
|
||||||
|
postgres: Postgres
|
||||||
|
cgo: 0
|
||||||
|
|
||||||
|
- label: PostgreSQL, full HTTP APIs
|
||||||
|
postgres: Postgres
|
||||||
|
api: full-http
|
||||||
|
cgo: 0
|
||||||
steps:
|
steps:
|
||||||
# Env vars are set file a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on env to run Complement.
|
# Env vars are set file a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on env to run Complement.
|
||||||
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
|
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
|
||||||
|
|
@ -203,13 +240,7 @@ jobs:
|
||||||
run: go install github.com/wadey/gocovmerge@latest
|
run: go install github.com/wadey/gocovmerge@latest
|
||||||
- name: Run gocovmerge
|
- name: Run gocovmerge
|
||||||
run: |
|
run: |
|
||||||
echo "env:"
|
find -name 'complementcover.log' -printf '"%p"\n' | xargs gocovmerge | grep -Ev 'relayapi|setup/mscs|api_trace' > complement.cov
|
||||||
env
|
|
||||||
echo "ls:"
|
|
||||||
ls -la
|
|
||||||
echo "Find:"
|
|
||||||
find -name 'complementcover.log'
|
|
||||||
find -name 'complementcover.log' | xargs gocovmerge | grep -Ev 'relayapi|setup/mscs|api_trace' > complement.cov
|
|
||||||
go tool cover -func=complement.cov
|
go tool cover -func=complement.cov
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue