Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linux_pre_run_command to soundness #66

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/soundness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down