Skip to content

Commit

Permalink
Test workflow (#17)
Browse files Browse the repository at this point in the history
* test workflow

* use kustomization file unique to end-to-end tests

* move commands to make setup

* set correct Kubernetes version

* fix race condition in test

* fix image in deploy example
  • Loading branch information
LasseHels authored Nov 21, 2024
1 parent 1674070 commit e768e0e
Show file tree
Hide file tree
Showing 13 changed files with 722 additions and 31 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ jobs:
lint:
name: Lint
uses: ./.github/workflows/lint.yml
end-to-end:
name: End-to-end
uses: ./.github/workflows/test-end-to-end.yml
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
needs: [test, lint]
needs: [test, lint, end-to-end]
with:
version: '${{ github.sha }}'
push: true
3 changes: 3 additions & 0 deletions .github/workflows/pr-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ jobs:
lint:
name: Lint
uses: ./.github/workflows/lint.yml
end-to-end:
name: End-to-end
uses: ./.github/workflows/test-end-to-end.yml
25 changes: 25 additions & 0 deletions .github/workflows/test-end-to-end.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_call:

jobs:
end-to-end:
name: Test
strategy:
matrix:
kubernetes-version: ['v1.29.7', 'v1.30.6', 'v1.31.0']
permissions:
contents: read
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Install Minikube
uses: medyagh/[email protected]
with:
start: false
- name: Setup for test
run: END_TO_END_TEST_KUBERNETES_VERSION=${{ matrix.kubernetes-version }} make setup
- name: Run end-to-end tests
run: make test-end-to-end
Loading

0 comments on commit e768e0e

Please sign in to comment.