Skip to content

fix: 作者这个脚本很好用!但就是不适合alpine用! (#31) #18

fix: 作者这个脚本很好用!但就是不适合alpine用! (#31)

fix: 作者这个脚本很好用!但就是不适合alpine用! (#31) #18

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go (to install shfmt)
uses: actions/setup-go@v4
with:
go-version: "1.23"
- name: Install shfmt
run: |
go install mvdan.cc/sh/v3/cmd/shfmt@latest
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Check shell formatting
run: find . -name "*.sh" -type f -print0 | xargs -0 shfmt -i 0 -ci -bn -w
- name: ShellCheck
uses: ludeeus/action-shellcheck@master