mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 19:54:48 -05:00
Enable testing against PostgreSQL databases in Complement CI. (#12965)
This commit is contained in:
parent
1df22e16df
commit
3d1d510fa9
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@ -310,6 +310,16 @@ jobs:
|
|||||||
needs: linting-done
|
needs: linting-done
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arrangement: monolith
|
||||||
|
database: SQLite
|
||||||
|
|
||||||
|
- arrangement: monolith
|
||||||
|
database: Postgres
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# The path is set via a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on the path to run Complement.
|
# The path is set via a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on the path 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
|
||||||
@ -337,7 +347,7 @@ jobs:
|
|||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
|
POSTGRES=${{ (matrix.database == 'Postgres') && 1 }} COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
|
||||||
shell: bash
|
shell: bash
|
||||||
name: Run Complement Tests
|
name: Run Complement Tests
|
||||||
|
|
||||||
|
1
changelog.d/12965.misc
Normal file
1
changelog.d/12965.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Enable testing against PostgreSQL databases in Complement CI.
|
Loading…
Reference in New Issue
Block a user