diff --git a/.github/workflows/soundness.yml b/.github/workflows/soundness.yml index 9cedbcf..8261cbf 100644 --- a/.github/workflows/soundness.yml +++ b/.github/workflows/soundness.yml @@ -63,6 +63,10 @@ on: type: boolean description: "Boolean to enable the Python lint check job. Defaults to true." default: true + linux_pre_build_command: + type: string + description: "Linux command to execute before building the Swift package" + default: "" ## We are cancelling previously triggered workflow runs concurrency: @@ -86,6 +90,9 @@ jobs: - name: Mark the workspace as safe # https://github.com/actions/checkout/issues/766 run: git config --global --add safe.directory ${GITHUB_WORKSPACE} + - name: Pre-build + if: ${{ inputs.linux_pre_build_command }} + run: ${{ inputs.linux_pre_build_command }} - name: Run API breakage check run: | git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref @@ -104,6 +111,9 @@ jobs: with: persist-credentials: false submodules: true + - name: Pre-build + if: ${{ inputs.linux_pre_build_command }} + run: ${{ inputs.linux_pre_build_command }} - name: Run documentation check run: | apt-get -qq update && apt-get -qq -y install curl yq @@ -217,6 +227,7 @@ jobs: curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/yamllint.yml > .yamllint.yml fi yamllint --strict --config-file .yamllint.yml . + python-lint-check: name: Python lint check if: ${{ inputs.python_lint_check_enabled }}