Skip to content

chore: Update current development version (#149) #171

chore: Update current development version (#149)

chore: Update current development version (#149) #171

Workflow file for this run

name: "Run End-to-end tests"
on:
push:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
e2e-tests-127:
name: End-to-end tests 1.27
runs-on: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 1
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: "install kuttl"
run: ./hack/install-kuttl.sh
- name: "run tests"
env:
KUBE_VERSION: "1.27"
run: make start-kind KUBE_VERSION=$KUBE_VERSION && make e2e
- name: Save cache
id: cache-save
uses: actions/cache/save@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
e2e-tests-128:
name: End-to-end tests 1.28
needs: [e2e-tests-127]
runs-on: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 1
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: "install kuttl"
run: ./hack/install-kuttl.sh
- name: "run tests"
env:
KUBE_VERSION: "1.28"
run: make start-kind KUBE_VERSION=$KUBE_VERSION && make e2e
- name: Save cache
id: cache-save
uses: actions/cache/save@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
e2e-tests-check:
runs-on: ubuntu-20.04
if: always()
needs: [e2e-tests-127, e2e-tests-128]
steps:
- name: Print result
run: echo ${{ needs.e2e-tests-127.result }} && echo ${{ needs.e2e-tests-128.result }}
- name: Interpret result
run: |
if [[ success == ${{ needs.e2e-tests-127.result }} && success == ${{ needs.e2e-tests-128.result }} ]]
then
echo "All matrix jobs passed!"
else
echo "One or more matrix jobs failed."
false
fi