| 1 |
name: Builder - Integration tests |
| 2 |
|
| 3 |
on: |
| 4 |
# on changes to the main branch touching the builder |
| 5 |
push: |
| 6 |
branches: [main] |
| 7 |
|
| 8 |
# on PRs touching the builder |
| 9 |
pull_request: |
| 10 |
branches: [main] |
| 11 |
|
| 12 |
# once a day at 6:17 AM UTC |
| 13 |
schedule: |
| 14 |
- cron: "17 6 * * *" |
| 15 |
|
| 16 |
# manual execution |
| 17 |
workflow_dispatch: |
| 18 |
|
| 19 |
merge_group: |
| 20 |
types: [checks_requested] |
| 21 |
|
| 22 |
concurrency: |
| 23 |
group: ${{ github.workflow }}-${{ github.ref_name }} |
| 24 |
cancel-in-progress: true |
| 25 |
|
| 26 |
permissions: read-all |
| 27 |
|
| 28 |
jobs: |
| 29 |
integration-test: |
| 30 |
name: Integration test |
| 31 |
runs-on: ubuntu-latest |
| 32 |
steps: |
| 33 |
- name: Checkout Repo |
| 34 |
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 35 |
- name: Setup Go |
| 36 |
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 |
| 37 |
with: |
| 38 |
go-version: oldstable |
| 39 |
cache: false |
| 40 |
|
| 41 |
- name: Cache Go |
| 42 |
id: go-cache |
| 43 |
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
| 44 |
with: |
| 45 |
path: | |
| 46 |
~/go/bin |
| 47 |
~/go/pkg/mod |
| 48 |
key: go-cache-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/go.sum') }} |
| 49 |
|
| 50 |
- name: Test |
| 51 |
run: make builder-integration-test |