diff --git a/.github/workflows/schedules.yaml b/.github/workflows/schedules.yaml index c9d9d8f9a..f54ed35cd 100644 --- a/.github/workflows/schedules.yaml +++ b/.github/workflows/schedules.yaml @@ -22,7 +22,24 @@ jobs: fail-fast: false matrix: 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: image: matrixdotorg/sytest-dendrite:latest volumes: @@ -87,7 +104,7 @@ jobs: 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 + find -name 'integrationcover.log' -printf '"%p"\n' | 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 @@ -107,6 +124,26 @@ jobs: include: - label: SQLite native 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: # 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 @@ -203,13 +240,7 @@ jobs: run: go install github.com/wadey/gocovmerge@latest - name: Run gocovmerge run: | - echo "env:" - 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 + find -name 'complementcover.log' -printf '"%p"\n' | xargs gocovmerge | grep -Ev 'relayapi|setup/mscs|api_trace' > complement.cov go tool cover -func=complement.cov - name: Upload coverage to Codecov uses: codecov/codecov-action@v3