ci: fix #5
This file contains 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
on: | |
push: | |
branches: | |
- feat/ci | |
name: ci | |
env: | |
GO111MODULE: on | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.20 | |
cache: false | |
- name: Sort Imports | |
run: | | |
export PATH="$PATH:$GOPATH/bin" | |
go install github.com/incu6us/goimports-reviser@latest | |
find . -name "*.go" | xargs goimports-reviser | |
- name: GolangCI-Lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: 'v1.61.0' | |
args: '--timeout 9999s' | |
only-new-issues: true | |
skip-save-cache: true | |
- name: commit back | |
run: | | |
git config --local user.name 'github-actions[bot]' | |
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git add . | |
git commit -m "ci(chore): Fix stylings" | |
git push | |