Files
runner/.gitea/workflows/pr.yml
T
Madison Grubb 2456195fbc initial commit
2026-03-12 22:41:33 -04:00

35 lines
843 B
YAML

name: Lint Docker files and shell scripts
on:
pull_request:
paths:
- '.gitea/workflows/**'
- 'Dockerfile'
- 'scripts/**'
- 'build.sh'
jobs:
lint-dockerfile:
name: Lint Dockerfile with hadolint
runs-on: ubuntu-latest
steps:
- uses: https://git.keligrubb.com/actions/checkout@v6
- name: Run hadolint
uses: hadolint/hadolint-action@v3
with:
dockerfile: Dockerfile
lint-shell-scripts:
name: Lint shell scripts with shellcheck
runs-on: ubuntu-latest
steps:
- uses: https://git.keligrubb.com/actions/checkout@v6
- name: Install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Run shellcheck
run: |
find . -name '*.sh' -print0 | xargs -0 -n1 shellcheck