22 lines
409 B
YAML
22 lines
409 B
YAML
name: Test code
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
|
|
jobs:
|
|
Test-code:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install ShellCheck
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install -y shellcheck
|
|
|
|
- name: Run ShellCheck
|
|
run: |
|
|
find . -name "*.sh" -exec shellcheck -e SC2001 -s warning {} \;
|