Skip to content

feat: enhance CI/CD with linting, security scanning, and testing #1

feat: enhance CI/CD with linting, security scanning, and testing

feat: enhance CI/CD with linting, security scanning, and testing #1

Workflow file for this run

name: Lint
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: ShellCheck
uses: luizm/action-sh-checker@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHFMT_OPTS: -i 2 -ci
with:
sh_checker_comment: true
sh_checker_exclude: ".git"
shfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup shfmt
run: |
curl -sS https://webinstall.dev/shfmt | bash
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Run shfmt
run: shfmt -i 2 -ci -w .
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: auto-format shell scripts with shfmt"
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: frenck/action-yamllint@v1