diff --git a/.github/workflows/dendrite.yml b/.github/workflows/dendrite.yml index f7285c136..3dda614b7 100644 --- a/.github/workflows/dendrite.yml +++ b/.github/workflows/dendrite.yml @@ -312,6 +312,7 @@ jobs: image: matrixdotorg/sytest-dendrite:latest volumes: - ${{ github.workspace }}:/src + - ${{ github.workspace }}/sytest:/sytest - /root/.cache/go-build:/github/home/.cache/go-build - /root/.cache/go-mod:/gopath/pkg/mod env: @@ -321,6 +322,12 @@ jobs: CGO_ENABLED: ${{ matrix.cgo && 1 }} steps: - uses: actions/checkout@v3 + - name: Checkout matrix-org/sytest:dendrite + uses: actions/checkout@v3 + with: + path: sytest + repository: matrix-org/sytest + ref: dendrite - uses: actions/cache@v3 with: path: | diff --git a/.github/workflows/schedules.yaml b/.github/workflows/schedules.yaml index 1e4592383..eeb2485e1 100644 --- a/.github/workflows/schedules.yaml +++ b/.github/workflows/schedules.yaml @@ -34,13 +34,30 @@ jobs: image: matrixdotorg/sytest-dendrite:latest volumes: - ${{ github.workspace }}:/src + - ${{ github.workspace }}/sytest:/sytest + - /root/.cache/go-build:/github/home/.cache/go-build + - /root/.cache/go-mod:/gopath/pkg/mod env: POSTGRES: ${{ matrix.postgres && 1}} API: ${{ matrix.api && 1 }} SYTEST_BRANCH: ${{ github.head_ref }} RACE_DETECTION: 1 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Checkout matrix-org/sytest:dendrite + uses: actions/checkout@v3 + with: + path: sytest + repository: matrix-org/sytest + ref: dendrite + - uses: actions/cache@v3 + with: + path: | + ~/.cache/go-build + /gopath/pkg/mod + key: ${{ runner.os }}-go-sytest-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-sytest- - name: Run Sytest run: /bootstrap.sh dendrite working-directory: /src