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

Commit

Permalink
Run actions/setup-go after checking out complement (#16567)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored Oct 30, 2023
1 parent 8c63e93 commit 4e1a19d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/latest_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,14 @@ jobs:
with:
path: synapse

- uses: actions/setup-go@v4

- name: Prepare Complement's Prerequisites
run: synapse/.ci/scripts/setup_complement_prerequisites.sh

- uses: actions/setup-go@v4
with:
cache-dependency-path: complement/go.sum
go-version-file: complement/go.mod

- run: |
set -o pipefail
TEST_ONLY_IGNORE_POETRY_LOCKFILE=1 POSTGRES=${{ (matrix.database == 'Postgres') && 1 || '' }} WORKERS=${{ (matrix.arrangement == 'workers') && 1 || '' }} COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | synapse/.ci/scripts/gotestfmt
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -633,11 +633,14 @@ jobs:
uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2

- uses: actions/setup-go@v4

- name: Prepare Complement's Prerequisites
run: synapse/.ci/scripts/setup_complement_prerequisites.sh

- uses: actions/setup-go@v4
with:
cache-dependency-path: complement/go.sum
go-version-file: complement/go.mod

# use p=1 concurrency as GHA boxes are underpowered and don't like running tons of synapses at once.
- run: |
set -o pipefail
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/twisted_trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,14 @@ jobs:
with:
path: synapse

- uses: actions/setup-go@v4

- name: Prepare Complement's Prerequisites
run: synapse/.ci/scripts/setup_complement_prerequisites.sh

- uses: actions/setup-go@v4
with:
cache-dependency-path: complement/go.sum
go-version-file: complement/go.mod

# This step is specific to the 'Twisted trunk' test run:
- name: Patch dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions changelog.d/16567.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deal with warnings from running complement in CI.

0 comments on commit 4e1a19d

Please sign in to comment.