2022-01-04 00:10:36 +00:00
|
|
|
name: CI-pullrequest
|
|
|
|
|
|
|
|
on:
|
2023-10-16 20:07:22 +00:00
|
|
|
pull_request_target:
|
2022-01-04 00:10:36 +00:00
|
|
|
branches:
|
2022-08-29 18:57:07 +00:00
|
|
|
- dev-v*
|
|
|
|
- release-v*
|
2022-01-04 00:10:36 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-10-10 12:13:02 +00:00
|
|
|
name: Build
|
2022-01-04 00:10:36 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-16 20:07:22 +00:00
|
|
|
- name: Checkout base branch
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Checkout PR
|
|
|
|
run: gh pr checkout ${{ github.event.pull_request.number }}
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-01-04 00:10:36 +00:00
|
|
|
|
|
|
|
- name: Checkout into branch
|
|
|
|
run: git checkout -b staging-pr-workflow
|
|
|
|
|
|
|
|
- name: Pull scripts
|
|
|
|
run: sudo make pull-scripts
|
|
|
|
|
2023-09-07 02:52:40 +00:00
|
|
|
- name: Check release.yaml
|
|
|
|
run: sudo make check-release-yaml
|
|
|
|
|
2022-01-04 00:10:36 +00:00
|
|
|
- name: Validate
|
|
|
|
run: sudo make validate
|
2023-05-15 14:20:38 +00:00
|
|
|
|
2023-09-21 19:29:49 +00:00
|
|
|
check-images:
|
|
|
|
name: Check Container Images
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-17 00:53:53 +00:00
|
|
|
- name: Checkout base branch
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Checkout PR
|
|
|
|
run: gh pr checkout ${{ github.event.pull_request.number }}
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-09-21 19:29:49 +00:00
|
|
|
|
2023-08-17 20:41:28 +00:00
|
|
|
- name: Check container images
|
|
|
|
run: make check-images
|
|
|
|
env:
|
|
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
2023-08-31 16:04:53 +00:00
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
2023-09-21 19:29:04 +00:00
|
|
|
check-rc:
|
|
|
|
name: Check RC Images and Charts
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-17 00:53:53 +00:00
|
|
|
- name: Checkout base branch
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Checkout PR
|
|
|
|
run: gh pr checkout ${{ github.event.pull_request.number }}
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-09-21 19:29:04 +00:00
|
|
|
|
2023-08-31 16:04:53 +00:00
|
|
|
- name: Check RC images and charts
|
|
|
|
run: make check-rc
|
2023-10-24 00:31:28 +00:00
|
|
|
if: startsWith(github.ref, 'refs/heads/release-v')
|
|
|
|
|
|
|
|
hull-tests:
|
|
|
|
name: Run Hull tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout base branch
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Checkout PR
|
|
|
|
run: gh pr checkout ${{ github.event.pull_request.number }}
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Run Hull tests
|
|
|
|
run: cd tests && go test -v ./...
|