-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (52 loc) · 1.48 KB
/
pull-request.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Pull request
on:
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
outputs:
chart-path: ${{ steps.build.outputs.chart-path }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build local
id: build
run: |
KOTS_TAG=$(gh release view --repo replicatedhq/kots --json tagName -q .tagName)
./scripts/build-local.sh "$KOTS_TAG"
echo "chart-path=admin-console-${KOTS_TAG#v}.tgz" >> "$GITHUB_OUTPUT"
e2e:
runs-on: ubuntu-latest
needs:
- build
strategy:
fail-fast: false
matrix:
test:
- s3-to-rqlite
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/e2e
with:
test-name: ${{ matrix.test }}
chart-path: ${{ needs.build.outputs.chart-path }}
replicated-api-token: ${{ secrets.C11Y_MATRIX_TOKEN }}
# this job will validate that all the tests passed
# it is used for the github branch protection rule
validate-success:
runs-on: ubuntu-20.04
needs:
- e2e
if: always()
steps:
# https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context
- name: fail if e2e job was not successful
if: needs.e2e.result != 'success'
run: exit 1
- name: succeed if everything else passed
run: echo "Validation succeeded"