You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
599 B
30 lines
599 B
name: Lint |
|
|
|
on: |
|
push: |
|
branches: |
|
- develop |
|
paths: |
|
- '**.sh' |
|
pull_request: |
|
branches: |
|
- develop |
|
paths: |
|
- '**.sh' |
|
|
|
jobs: |
|
shellcheck: |
|
runs-on: ubuntu-latest |
|
env: |
|
LANG: C.UTF-8 |
|
container: |
|
image: docker.io/ubuntu:23.04 |
|
steps: |
|
- uses: actions/checkout@v3 |
|
|
|
- name: Install shellcheck |
|
run: apt update && apt install -y shellcheck bash && shellcheck --version |
|
|
|
- name: Check shell scripts |
|
run: shopt -s globstar && ls **/*.sh && shellcheck -x -P "SCRIPTDIR" --severity=info **/*.sh |
|
shell: bash
|
|
|