Skip to content

Commit 263ef6c

Browse files
committed
test(e2e): add kind e2e action
Signed-off-by: Calum Murray <cmurray@redhat.com>
1 parent 5dba5f2 commit 263ef6c

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/e2e.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: E2E Tests
2+
3+
on:
4+
pull_request:
5+
branches: ['main']
6+
paths-ignore:
7+
- '.gitignore'
8+
- 'LICENSE'
9+
- '*.md'
10+
- 'docs/**'
11+
12+
permissions:
13+
contents: read
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
jobs:
24+
e2e:
25+
name: Run E2E Tests
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
30+
31+
- name: Setup Go
32+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
33+
with:
34+
go-version-file: go.mod
35+
36+
- name: Create Kind cluster
37+
run: make kind-create-cluster
38+
39+
- name: Build and load e2e image
40+
run: make e2e-image
41+
42+
- name: Run e2e tests
43+
env:
44+
KUBECONFIG: ${{ github.workspace }}/_output/kubeconfig
45+
run: make e2e-test
46+
47+
- name: Cleanup
48+
if: always()
49+
run: make kind-delete-cluster

0 commit comments

Comments
 (0)