rancher-charts/.github/workflows/pull-request.yaml

69 lines
1.7 KiB
YAML
Raw Normal View History

2022-01-04 00:10:36 +00:00
name: CI-pullrequest
on:
pull_request_target:
2022-01-04 00:10:36 +00:00
branches:
- 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:
- 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: make check-release-yaml
2023-09-07 02:52:40 +00:00
2022-01-04 00:10:36 +00:00
- name: Validate
run: sudo make validate
2023-05-15 14:20:38 +00:00
- name: Run Hull tests
run: cd tests && go test -v ./...
2023-09-21 19:29:49 +00:00
check-images:
name: Check Container Images
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 }}
2023-09-21 19:29:49 +00:00
- name: Check container images
run: make check-images
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
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:
- 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
- name: Check RC images and charts
run: make check-rc
if: startsWith(github.ref, 'refs/heads/release-v')