From 9d4e4f6b83c2c56f23826e537c5c27b503331a48 Mon Sep 17 00:00:00 2001 From: Yuval Shavit <110620369+yuval-klotho@users.noreply.github.com> Date: Tue, 31 Jan 2023 12:27:46 -0500 Subject: [PATCH] add optional hook before building klotho --- .github/workflows/run-integ-tests.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/run-integ-tests.yaml b/.github/workflows/run-integ-tests.yaml index 0ae573fe8..4cd6fd3c9 100644 --- a/.github/workflows/run-integ-tests.yaml +++ b/.github/workflows/run-integ-tests.yaml @@ -60,6 +60,11 @@ on: required: false type: string default: us-east-2 + pre-build-script: # This input is intentionally NOT in workflow_dispatch + description: path to a script (within the caller's repo) to invoke before `go build`. must be executable. + required: false + type: string + default: '' concurrency: integ-tests name: run integration tests jobs: @@ -111,6 +116,9 @@ jobs: - uses: actions/setup-go@v3 with: go-version: 1.19.x + - name: pre-build + if: ${{ inputs.pre-build-script }} + run: ${{ inputs.pre-build-script }} - name: build run: | go generate ./...