-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.17 KB
/
e2e-test.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
name: End-to-end test
on:
workflow_dispatch:
push:
branches: 'main'
pull_request:
branches: 'main'
jobs:
end-to-end-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flux
uses: fluxcd/flux2/action@main
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Setup Kubernetes
uses: nolar/setup-k3d-k3s@v1
with:
k3d-name: cluster-test
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Flux
run: flux install
- name: Setup cluster reconciliation
run: ./.github/scripts/e2e-setup-cluster-reconciliation.sh
shell: bash
- name: Verify cluster reconciliation
run: ./.github/scripts/e2e-verify-cluster-reconciliation.sh
shell: bash
- name: Verify helm reconciliation
run: ./.github/scripts/e2e-verify-helm-reconciliation.sh
shell: bash
- name: Debug failure
if: failure()
run: ./.github/scripts/e2e-debug-failure.sh
shell: bash