-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Matthieu MOREL <[email protected]>
- Loading branch information
Showing
10 changed files
with
81 additions
and
338 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Run E2E tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: [ main ] | ||
paths-ignore: | ||
- '**.md' | ||
concurrency: | ||
group: e2e-tests-${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e: | ||
name: "Run ${{ matrix.testsuite.label }} E2E test suite on Kube ${{ matrix.kube-version }}" | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
kube-version: | ||
- "1.19" | ||
- "1.28" | ||
testsuite: | ||
- { name: "elasticsearch", label: "Elasticsearch" } | ||
- { name: "examples", label: "Examples" } | ||
- { name: "generate", label: "Generate" } | ||
- { name: "miscellaneous", label: "Miscellaneous" } | ||
- { name: "sidecar", label: "Sidecar" } | ||
- { name: "streaming", label: "Streaming" } | ||
- { name: "ui", label: "UI" } | ||
- { name: "upgrade", label: "Upgrade" } | ||
steps: | ||
- name: "Check out code into the Go module directory" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: "Set up Go" | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.21" | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
install: true | ||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: e2e-${{ github.sha }} | ||
restore-keys: | | ||
e2e- | ||
- name: "Install KIND" | ||
run: ./hack/install/install-kind.sh | ||
shell: bash | ||
- name: "Install KUTTL" | ||
run: ./hack/install/install-kuttl.sh | ||
shell: bash | ||
- name: "Install gomplate" | ||
run: ./hack/install/install-gomplate.sh | ||
shell: bash | ||
- name: "Install dependencies" | ||
run: make install-tools | ||
shell: bash | ||
- name: "Run ${{ matrix.testsuite.label }} E2E test suite on Kube ${{ matrix.kube-version }}" | ||
env: | ||
VERBOSE: "true" | ||
KUBE_VERSION: "${{ matrix.kube-version }}" | ||
DOCKER_BUILD_OPTIONS: "--cache-from type=local,src=/tmp/.buildx-cache --cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max --load" | ||
run: make run-e2e-tests-${{ matrix.testsuite.name }} | ||
shell: bash | ||
# Temp fix | ||
# https://github.com/docker/build-push-action/issues/252 | ||
# https://github.com/moby/buildkit/issues/1896 | ||
- name: Move cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | ||
shell: bash |
Oops, something went wrong.