fix: 作者这个脚本很好用!但就是不适合alpine用! (#31) #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |