💩👌 make lint happy

This commit is contained in:
fumiama 2021-08-06 19:11:09 +08:00
parent 9f99c063f0
commit ba78d521f5

View File

@ -1,24 +1,31 @@
name: Lint name: golangci-lint
on: [push] on: [push]
jobs: jobs:
golangci: golangci:
name: lint_golangci-lint name: lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.2 uses: golangci/golangci-lint-action@v2
with: with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest version: latest
- name: Commit back # Optional: working directory, useful for monorepos
continue-on-error: true # working-directory: somedir
run: |
git config --local user.name 'github-actions[bot]' # Optional: golangci-lint command line arguments.
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com' # args: --issues-exit-code=0
git add --all
git commit -m "🎨 改进代码样式" # Optional: show only new issues if it's a pull request. The default value is `false`.
git push # only-new-issues: true
# Optional: if set to true then the action will use pre-installed Go.
# skip-go-installation: true
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true