chore: approve Dependabot PRs before attempting to merge #327
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: run-tests | |
| on: | |
| workflow_call: | |
| outputs: | |
| pr_number: | |
| description: "The PR number" | |
| value: ${{ jobs.test.outputs.pr_number }} | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| version: [ 'oldstable', 'stable' ] | |
| name: Go ${{ matrix.version }} | |
| outputs: | |
| pr_number: ${{ github.event.number }} | |
| steps: | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.version }} | |
| - uses: actions/checkout@v5 | |
| - run: GOTOOLCHAIN=local make test | |
| call-dependabot-pr-workflow: | |
| needs: test | |
| if: ${{ success() && github.actor == 'dependabot[bot]' }} | |
| uses: cloudfoundry/brokerapi/.github/workflows/dependabot-test.yml@main | |
| with: | |
| pr_number: ${{ github.event.number }} |