-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Decouple integration tests from name of service (#148)
Signed-off-by: Christian Kreuzberger <[email protected]>
- Loading branch information
1 parent
388859e
commit 750c8d1
Showing
1 changed file
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,18 +22,22 @@ jobs: | |
ENABLE_E2E_TEST: true | ||
BRANCH: ${{ github.head_ref || github.ref_name }} | ||
KUBECONFIG: /etc/rancher/k3s/k3s.yaml | ||
GOPROXY: "https://proxy.golang.org" | ||
steps: | ||
- name: Checkout keptn-contrib/keptn-service-template-go | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
repository: keptn-sandbox/keptn-service-template-go | ||
path: keptn-service-template-go | ||
|
||
- name: Install Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Load CI Environment from .ci_env | ||
id: load_ci_env | ||
uses: c-py/action-dotenv-to-setenv@v3 | ||
with: | ||
env-file: .ci_env | ||
|
||
# Download artifacts from last CI run | ||
- name: Download artifacts | ||
uses: dawidd6/[email protected] | ||
|
@@ -76,17 +80,20 @@ jobs: | |
run: | | ||
curl -X GET "${{ steps.install_keptn.outputs.KEPTN_ENDPOINT }}/v1/metadata" -H "accept: application/json" -H "x-token: ${{ steps.install_keptn.outputs.KEPTN_API_TOKEN }}" | ||
# Install Keptn-Service-Template-Go from downloaded helm chart | ||
- name: Install Keptn-Service-Template-Go | ||
# Install service from downloaded helm chart | ||
- name: Install service | ||
run: | | ||
helm upgrade --install --create-namespace -n keptn keptn-service-template-go \ | ||
./dist/helm-charts/keptn-service-template-go-*.tgz \ | ||
helm upgrade --install --create-namespace -n keptn ${{ env.IMAGE }} \ | ||
./dist/helm-charts/*.tgz \ | ||
--wait | ||
- name: Install gotestsum | ||
shell: bash | ||
run: go install gotest.tools/gotestsum@latest | ||
|
||
- name: Run integration tests | ||
env: | ||
KEPTN_ENDPOINT: ${{ steps.install_keptn.outputs.KEPTN_ENDPOINT }} | ||
KEPTN_API_TOKEN: ${{ steps.install_keptn.outputs.KEPTN_API_TOKEN }} | ||
shell: bash | ||
working-directory: keptn-service-template-go | ||
run: go test -race -v ./... | ||
run: gotestsum ./test/e2e/... |