Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI by building the Synapse-workers image (needed to build the Synapse-Complement image) #391

Merged
merged 2 commits into from
Jun 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ jobs:
go test ./internal/...

complement:
name: Complement (${{ matrix.homeserver }})
runs-on: ubuntu-latest
strategy:
fail-fast: false # ensure if synapse fails we keep running dendrite and vice-versa
matrix:
include:
- homeserver: Synapse
tags: synapse_blacklist msc3083 msc3787 faster_joins
env: "COMPLEMENT_SHARE_ENV_PREFIX=PASS_ PASS_SYNAPSE_COMPLEMENT_DATABASE=sqlite"

- homeserver: Dendrite
tags: msc2836 dendrite_blacklist
env: ""

steps:
- uses: actions/checkout@v2 # Checkout complement
Expand Down Expand Up @@ -86,6 +89,7 @@ jobs:
# Build the base Synapse dockerfile and then build a Complement-specific image from that base.
- run: |
docker build -t matrixdotorg/synapse:latest -f docker/Dockerfile .
docker build -t matrixdotorg/synapse-workers:latest -f docker/Dockerfile-workers .
docker build -t homeserver -f docker/complement/Dockerfile docker/complement
if: ${{ matrix.homeserver == 'Synapse' }}
working-directory: homeserver
Expand All @@ -100,7 +104,7 @@ jobs:

- run: |
set -o pipefail &&
go test -v -json -tags "${{ matrix.tags }}" ./tests/... 2>&1 | gotestfmt
${{ matrix.env }} go test -v -json -tags "${{ matrix.tags }}" ./tests/... 2>&1 | gotestfmt
shell: bash # required for pipefail to be A Thing. pipefail is required to stop gotestfmt swallowing non-zero exit codes
name: Run Complement Tests
env:
Expand Down