parallel e2e testing with different kubeconfigs #94
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
name: e2e-test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
pull-requests: write | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Kind cluster1 | |
id: setup-kind1 | |
env: | |
KUBECONFIG_FILE_NAME: kind1.conf | |
uses: ./.github/actions/kind-create | |
with: | |
kind_cluster_name: kind1 | |
kind_k8s_version: v1.24.13 | |
- name: Setup Kind cluster2 | |
id: setup-kind2 | |
env: | |
KUBECONFIG_FILE_NAME: kind2.conf | |
uses: ./.github/actions/kind-create | |
with: | |
kind_cluster_name: kind2 | |
kind_k8s_version: v1.25.9 | |
- name: Setup Kind cluster3 | |
id: setup-kind3 | |
env: | |
KUBECONFIG_FILE_NAME: kind3.conf | |
uses: ./.github/actions/kind-create | |
with: | |
kind_cluster_name: kind3 | |
kind_k8s_version: v1.23.13 | |
- name: Run E2E tests | |
env: | |
TEST_STRATEGY: complete | |
KUBECONFIG_DIR: platforms/kind/kubeconfigs | |
MAX_TIMEOUT: "1h" | |
run: | | |
go work init | |
go work use -r . | |
make test-e2e | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/composite@master | |
if: always() | |
with: | |
commit: ${{ github.event.workflow_run.head_sha }} | |
report_individual_runs: "true" | |
check_name: "E2E test report" | |
large_files: true | |
comment_mode: off | |
files: | | |
tests/e2e/reports/e2e_*.xml |