From 4dc825075db0df49420b702a916e9f9524f4aa99 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Tue, 12 Mar 2024 12:00:50 +0100 Subject: [PATCH] Use check-dependent-jobs to create a single status check that can be set as required --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c5a5b139..bded63176 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,8 +32,7 @@ go mod tidy && git diff --exit-code gofmt -l . | read && echo "Code differs from gofmt's style. Run 'gofmt -w .'" 1>&2 && exit 1 || true go vet - - test: + go-test: strategy: fail-fast: false matrix: @@ -57,3 +56,14 @@ - name: Run examples run: ${{ startsWith(matrix.os,'windows') && '.github/examples.bat' || '.github/examples.sh' }} + test: + if: always() + runs-on: ubuntu-latest + needs: + - go-test + steps: + - id: check + uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current + with: + needs: ${{ toJSON(needs) }} + - run: ${{ steps.check.outputs.isSuccess }}