@@ -8,6 +8,11 @@ permissions:
88jobs :
99 build :
1010 runs-on : ubuntu-latest-8core
11+ if : |
12+ github.actor == 'renovate[bot]' ||
13+ github.actor == 'dependabot[bot]' ||
14+ contains(github.event.pull_request.title, 'run-int-tests') ||
15+ contains(github.event.head_commit.message, 'run-int-tests')
1116
1217 steps :
1318 - name : Checkout code
2934 - name : run integration test
3035 env :
3136 GARDENER_KUBECONFIG : ${{ secrets.GARDENER_LAAS_SERVICE_ACCOUNT }}
37+ PULL_REQUEST_ID : ${{ github.event.pull_request.number }}
3238 run : |
33- VERSION="$("./hack/get-version.sh")"
34-
35- echo "check if integration tests should be started"
36- (
37- PR_ID=$(git config -f "./.git/config" pullrequest.id)
38- echo "PR_ID: " $PR_ID
39-
40- GIT_COMMENT=$(git show -s --format=%s)
41- echo "git comment: " $GIT_COMMENT
42-
43- if git show -s --format=%s | grep run-int-tests; then
44- echo "'run-int-tests' in commit message, integration tests should be started"
45- "./hack/integration-test-runner.sh" "$GARDENER_KUBECONFIG" "garden-laas" "$VERSION" "$PR_ID"
46- elif git branch --show-current | grep -E "renovate/|dependabot/"; then
47- echo "Dependency update from renovate or dependabot, integration tests should be started"
48- "./hack/integration-test-runner.sh" "$GARDENER_KUBECONFIG" "garden-laas" "$VERSION" "$PR_ID"
49- else
50- echo "integration tests are skipped"
51- fi
52- )
53-
39+ VERSION="$('./hack/get-version.sh')"
40+ "./hack/integration-test-runner.sh" "$GARDENER_KUBECONFIG" "garden-laas" "$VERSION" "$PULL_REQUEST_ID"
0 commit comments