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