Skip to content

Commit 7518bd9

Browse files
committed
ci: add e2e workflow
1 parent a62cc85 commit 7518bd9

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed

.github/workflows/e2e.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: E2E Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
e2e:
14+
name: E2E Tests
15+
runs-on: ubuntu-latest
16+
17+
env:
18+
KIND_CLUSTER: e2e
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup go
25+
uses: actions/setup-go@v5
26+
27+
- name: Setup ko
28+
uses: ko-build/[email protected]
29+
30+
- name: Setup helm
31+
uses: azure/setup-helm@v4
32+
33+
- name: Setup kind
34+
uses: helm/kind-action@v1
35+
with:
36+
cluster_name: ${{ env.KIND_CLUSTER }}
37+
38+
- name: Run E2E tests
39+
env:
40+
GTM_APP_ID: ${{ vars.GTM_APP_ID }}
41+
GTM_INSTALLATION_ID: ${{ vars.GTM_INSTALLATION_ID }}
42+
GTM_PROVIDER: file
43+
GTM_KEY: ${{ secrets.GTM_KEY }}
44+
run: |
45+
make test-e2e

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![CodeQL](https://github.com/isometry/github-token-manager/actions/workflows/codeql.yaml/badge.svg)](https://github.com/isometry/github-token-manager/actions/workflows/codeql.yaml)
2+
[![E2E](https://github.com/isometry/github-token-manager/actions/workflows/e2e.yaml/badge.svg)](https://github.com/isometry/github-token-manager/actions/workflows/e2e.yaml)
23
[![Publish](https://github.com/isometry/github-token-manager/actions/workflows/publish.yaml/badge.svg)](https://github.com/isometry/github-token-manager/actions/workflows/publish.yaml)
34
[![Go Report Card](https://goreportcard.com/badge/github.com/isometry/github-token-manager)](https://goreportcard.com/report/github.com/isometry/github-token-manager)
45

@@ -158,8 +159,8 @@ More information can be found via the [Kubebuilder Documentation](https://book.k
158159
make ko-build IMG=<some-registry>/github-token-manager:tag
159160
```
160161

161-
**NOTE:** This image ought to be published in the personal registry you specified.
162-
And it is required to have access to pull the image from the working environment.
162+
**NOTE:** This image ought to be published in the personal registry you specified.
163+
And it is required to have access to pull the image from the working environment.
163164
Make sure you have the proper permission to the registry if the above commands don’t work.
164165

165166
#### Install the CRDs into the cluster:
@@ -174,7 +175,7 @@ make install
174175
make deploy IMG=<some-registry>/github-token-manager:tag
175176
```
176177

177-
> **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin
178+
> **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin
178179
privileges or be logged in as admin.
179180

180181
### To Uninstall

0 commit comments

Comments
 (0)