Skip to content

Commit

Permalink
fix: Decouple integration tests from name of service (#148)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kreuzberger <[email protected]>
  • Loading branch information
christian-kreuzberger-dtx authored Jun 27, 2022
1 parent 388859e commit 750c8d1
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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/...

0 comments on commit 750c8d1

Please sign in to comment.