From 6545798df198501c6f4c4a7fe95120ad1e1badb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Rold=C3=A1n=20Betancort?= Date: Mon, 17 Jul 2023 12:33:01 +0100 Subject: [PATCH] workaround for skipping matrix job not reporting subjobs See https://github.com/actions/runner/issues/952 and https://github.com/orgs/community/discussions/9141 --- .github/workflows/build-test.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 43bb005ddf..39282d195b 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -101,36 +101,44 @@ jobs: name: "Datastore Tests" runs-on: "ubuntu-latest" needs: "paths-filter" - if: | - needs.paths-filter.outputs.codechange == 'true' strategy: fail-fast: false matrix: datastore: ["crdb", "mysql", "postgres", "spanner"] steps: - uses: "actions/checkout@v3" + if: | + needs.paths-filter.outputs.codechange == 'true' - uses: "authzed/actions/setup-go@main" + if: | + needs.paths-filter.outputs.codechange == 'true' with: go-version: "${{ env.GO_VERSION }}" - name: "Integration tests" + if: | + needs.paths-filter.outputs.codechange == 'true' run: "go run mage.go testds:${{ matrix.datastore }}" datastoreconsistency: name: "Datastore Consistency Tests" runs-on: "ubuntu-latest" needs: "paths-filter" - if: | - needs.paths-filter.outputs.codechange == 'true' strategy: fail-fast: false matrix: datastore: ["crdb", "mysql", "postgres", "spanner"] steps: - uses: "actions/checkout@v3" + if: | + needs.paths-filter.outputs.codechange == 'true' - uses: "authzed/actions/setup-go@main" + if: | + needs.paths-filter.outputs.codechange == 'true' with: go-version: "${{ env.GO_VERSION }}" - name: "Integration tests" + if: | + needs.paths-filter.outputs.codechange == 'true' run: "go run mage.go testcons:${{ matrix.datastore }}" e2e: