Skip to content

Commit 04aac31

Browse files
committed
Install yamllint if missing.
Motivation: Real github actions hosts have yamllint pre-installed. Docker images through act by default don't. This leads to an annoying workflow for local runs. Modifications: Install yamllint if not found. Result: Both local and hosted github actions should work without modification.
1 parent 93d543f commit 04aac31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/soundness.yml

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ jobs:
202202
persist-credentials: false
203203
- name: Run yamllint
204204
run: |
205+
which yamllint >/dev/null || ( apt-get update && apt-get install -y yamllint )
205206
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/yamllint.yml > /tmp/yamllint.yml
206207
yamllint --strict --config-file /tmp/yamllint.yml ${GITHUB_WORKSPACE}
207208
python-lint-check:

0 commit comments

Comments
 (0)