25 lines
574 B
YAML
25 lines
574 B
YAML
name: ShellCheck CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, feature/* ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
shellcheck:
|
|
runs-on: deploy
|
|
container:
|
|
image: koalaman/shellcheck-alpine:stable # imagem oficial do shellcheck
|
|
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone http://10.11.10.71:3000/${{ gitea.repository }}.git .
|
|
git checkout ${{ gitea.sha }}
|
|
|
|
- name: Run ShellCheck
|
|
run: |
|
|
find . -name "*.sh" \
|
|
-not -path "./logs/*" \
|
|
-exec shellcheck --severity=warning {} + |