mirror of
https://github.com/getsentry/self-hosted.git
synced 2026-01-25 15:22:43 +00:00
* Revert "Revert "ref: migrate to uv (#4061)" (#4094)"
This reverts commit f9c0c31f437d0f75afe62708f18b1c661b4e5a2b.
* fix: provide python version
as per 0958463ee0/action.yml (L5-L7)
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: "ShellCheck"
|
|
on:
|
|
push:
|
|
paths:
|
|
- "**.sh"
|
|
branches: [master]
|
|
pull_request:
|
|
paths:
|
|
- "**.sh"
|
|
branches: [master]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
shellcheck:
|
|
name: ShellCheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Repository checkout
|
|
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Run ShellCheck
|
|
run: |
|
|
git diff --name-only -z `git merge-base origin/master HEAD` -- \
|
|
install/_lib.sh \
|
|
'optional-modifications/**.sh' \
|
|
'scripts/**.sh' \
|
|
unit-test.sh \
|
|
'workstation/**.sh' \
|
|
| xargs -0 -r -- \
|
|
shellcheck \
|
|
--shell=bash \
|
|
--format=json1 \
|
|
--external-sources \
|
|
| jq -r '
|
|
.comments
|
|
| map(.level |= if ([.] | inside(["info", "style"])) then "notice" else . end)
|
|
| .[] as $note
|
|
| "::\($note.level) file=\($note.file),line=\($note.line),endLine=\($note.endLine),col=\($note.column),endColumn=\($note.endColumn)::[SC\($note.code)] \($note.message)"
|
|
' \
|
|
| grep . >&2 && exit 1
|
|
|
|
exit 0
|