Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Enable testing against PostgreSQL databases in Complement CI. (#12965)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre authored Jun 9, 2022
1 parent 1df22e1 commit 3d1d510
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,16 @@ jobs:
needs: linting-done
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- arrangement: monolith
database: SQLite

- arrangement: monolith
database: Postgres

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.
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
Expand Down Expand Up @@ -337,7 +347,7 @@ jobs:

- run: |
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
name: Run Complement Tests
Expand Down
1 change: 1 addition & 0 deletions changelog.d/12965.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Enable testing against PostgreSQL databases in Complement CI.

0 comments on commit 3d1d510

Please sign in to comment.