diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 576afc00..b0bbbd09 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,18 +77,12 @@ jobs: if: "!contains(github.event.pull_request.labels.*.name, 'testing-ci-not-necessary')" run: echo "SHORT_GITHUB_SHA=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV" - - name: Configure tests - if: "!contains(github.event.pull_request.labels.*.name, 'testing-ci-not-necessary')" - id: configure-tests - run: | - echo "TEST_CLUSTER_ID=${{ env.SHORT_GITHUB_SHA }}" >> "$GITHUB_ENV" - - name: Launch tests in parallel if: "!contains(github.event.pull_request.labels.*.name, 'testing-ci-not-necessary')" working-directory: ./test/src/ timeout-minutes: 125 run: | - export TEST_CLUSTER_ID="${{ env.TEST_CLUSTER_ID }}" + export TESTS_CLUSTER_ID="${{ env.SHORT_GITHUB_SHA }}" export CLEAN_CLUSTER_AT_THE_END=true go install gotest.tools/gotestsum@v1.11.0 gotestsum --junitfile unit-tests.xml --format pkgname -- -v --timeout=120m -p 1 ./... diff --git a/test/README.md b/test/README.md index af909df8..4de90f1b 100644 --- a/test/README.md +++ b/test/README.md @@ -25,7 +25,7 @@ export AWS_REGION=eu-central-1 If you want to specify a non-random cluster UID: ```bash -export TEST_CLUSTER_ID="myTest" +export TESTS_CLUSTER_ID="myTest" ``` If you don't want to delete the resources at the end of the test: