initial commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user