2022-12-26 04:17:13 +01:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-01-28 01:18:02 +01:00
|
|
|
- develop
|
2022-12-26 04:17:13 +01:00
|
|
|
paths:
|
|
|
|
- '**.sh'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-01-28 01:18:02 +01:00
|
|
|
- develop
|
2022-12-26 04:17:13 +01:00
|
|
|
paths:
|
|
|
|
- '**.sh'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
shellcheck:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
LANG: C.UTF-8
|
|
|
|
container:
|
2023-12-20 17:01:40 +01:00
|
|
|
image: docker.io/ubuntu:24.04
|
2022-12-26 04:17:13 +01:00
|
|
|
steps:
|
2023-10-07 22:52:25 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-12-26 04:17:13 +01:00
|
|
|
|
|
|
|
- name: Install shellcheck
|
|
|
|
run: apt update && apt install -y shellcheck bash && shellcheck --version
|
|
|
|
|
|
|
|
- name: Check shell scripts
|
2023-01-11 03:50:32 +01:00
|
|
|
run: shopt -s globstar && ls **/*.sh && shellcheck -x -P "SCRIPTDIR" --severity=info **/*.sh
|
2022-12-26 04:17:13 +01:00
|
|
|
shell: bash
|