| 1 |
name: thirdparty |
| 2 |
permissions: |
| 3 |
contents: read |
| 4 |
on: |
| 5 |
push: |
| 6 |
branches: |
| 7 |
- master |
| 8 |
paths: |
| 9 |
- "tests/thirdparty/**" |
| 10 |
pull_request: |
| 11 |
paths: |
| 12 |
- ".github/workflows/thirdparty.yml" |
| 13 |
- "tests/thirdparty/**" |
| 14 |
jobs: |
| 15 |
test: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
steps: |
| 18 |
- name: Install Go |
| 19 |
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f |
| 20 |
with: |
| 21 |
go-version: 1.21.x |
| 22 |
check-latest: true |
| 23 |
- name: Checkout code |
| 24 |
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 |
| 25 |
with: |
| 26 |
persist-credentials: false |
| 27 |
- name: Generate App Token |
| 28 |
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c |
| 29 |
id: app |
| 30 |
with: |
| 31 |
app_id: ${{ secrets.APP_ID }} |
| 32 |
private_key: ${{ secrets.APP_PRIVATE_KEY }} |
| 33 |
- name: Run Third-Party Tests |
| 34 |
working-directory: tests/thirdparty |
| 35 |
env: |
| 36 |
GITHUB_TOKEN: ${{ steps.app.outputs.token }} |
| 37 |
run: go test -timeout 15m -args -net -suite suite.json |