File tree Expand file tree Collapse file tree 2 files changed +49
-3
lines changed
Expand file tree Collapse file tree 2 files changed +49
-3
lines changed Original file line number Diff line number Diff line change 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+ 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
Original file line number Diff line number Diff line change 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
158159make 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.
163164Make 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
174175make 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
178179privileges or be logged in as admin.
179180
180181# ## To Uninstall
You can’t perform that action at this time.
0 commit comments