mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Maybe add coverage reporting
This commit is contained in:
parent
bd99793888
commit
ebcba652ca
27
.github/workflows/schedules.yaml
vendored
27
.github/workflows/schedules.yaml
vendored
|
|
@ -78,6 +78,33 @@ jobs:
|
||||||
/logs/results.tap
|
/logs/results.tap
|
||||||
/logs/**/*.log*
|
/logs/**/*.log*
|
||||||
|
|
||||||
|
sytest-coverage:
|
||||||
|
timeout-minutes: 5
|
||||||
|
name: "Sytest Coverage"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: sytest # only run once Sytest is done
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.20
|
||||||
|
cache: true
|
||||||
|
- name: Download all artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
- name: Install gocovmerge
|
||||||
|
run: go install github.com/wadey/gocovmerge@latest
|
||||||
|
- name: Run gocovmerge
|
||||||
|
run: |
|
||||||
|
find -name 'integrationcover.log' | xargs gocovmerge | grep -Ev 'relayapi|setup/mscs|api_trace' > sytest.cov
|
||||||
|
go tool cover -func=sytest.cov
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@v3
|
||||||
|
with:
|
||||||
|
files: ./sytest.cov
|
||||||
|
flags: sytest
|
||||||
|
fail_ci_if_error: true
|
||||||
|
|
||||||
element_web:
|
element_web:
|
||||||
if: ${{ false }} # disable for now
|
if: ${{ false }} # disable for now
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue