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-05-16 08:05:46 +03:00
|
|
|
image: docker.io/ubuntu:23.10
|
2022-12-26 06:17:13 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- 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
|