-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (31 loc) · 808 Bytes
/
run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@v4
with:
go-version: ${{ matrix.version }}
- uses: actions/checkout@v4
- run: ./scripts/run-tests.sh
call-dependabot-pr-workflow:
needs: test
if: ${{ success() && github.actor == 'dependabot[bot]' }}
uses: pivotal-cf/brokerapi/.github/workflows/dependabot-test.yml@main
with:
pr_number: ${{ github.event.number }}