Skip to content

Commit

Permalink
fix: Integration test bugs (#124)
Browse files Browse the repository at this point in the history
* Debug Helm chart problem

Signed-off-by: TannerGabriel <[email protected]>

* Build second docker image version

Signed-off-by: TannerGabriel <[email protected]>

* Debug environment variables

Signed-off-by: TannerGabriel <[email protected]>

* Add Env variables to integration tests

Signed-off-by: TannerGabriel <[email protected]>

* Refactor integration test action

Signed-off-by: TannerGabriel <[email protected]>

* Refactor environment variables

Signed-off-by: TannerGabriel <[email protected]>
  • Loading branch information
TannerGabriel authored May 4, 2022
1 parent 7ea31ed commit 70ef361
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAGS: |
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE }}:${{ env.VERSION }}
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE }}:${{ env.VERSION }}.${{ env.DATETIME }}
BUILD_ARGS: |
version=${{ env.VERSION }}
PUSH: ${{(github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository)}}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ defaults:
jobs:
integration_test:
name: "Integration tests"
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
keptn-version: [ "0.11.4", "0.12.6", "0.13.4", "0.14.1" ]
env:
GO_VERSION: 1.17
GO111MODULE: "on"
ENABLE_E2E_TEST: true
BRANCH: ${{ github.head_ref || github.ref_name }}
steps:
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:
- name: Install Keptn
id: install_keptn
uses: keptn-sandbox/[email protected]
timeout-minutes: 5
timeout-minutes: 10
with:
KEPTN_VERSION: ${{ matrix.keptn-version }}
KUBECONFIG: /etc/rancher/k3s/k3s.yaml
Expand All @@ -61,12 +62,15 @@ jobs:
# Install Keptn-Service-Template-Go from downloaded helm chart
- name: Install Keptn-Service-Template-Go
run: |
run: |
helm upgrade --install --create-namespace -n keptn keptn-service-template-go \
./dist/helm-charts/keptn-service-template-go-*.tgz \
--wait
- 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 ./...

0 comments on commit 70ef361

Please sign in to comment.