Skip to content

Commit

Permalink
Use check-dependent-jobs to create a single status check that can be …
Browse files Browse the repository at this point in the history
…set as required
  • Loading branch information
reakaleek committed Mar 12, 2024
1 parent c8dd2d5 commit 4dc8250
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 4dc8250

Please sign in to comment.