Cobalt0s is running the linter #6018
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
name: Linter | |
run-name: ${{ github.actor }} is running the linter | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.23.3" | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
continue-on-error: false | |
with: | |
version: v1.62.0 | |
- name: Install gci | |
run: "go install github.com/daixiang0/gci@latest" | |
- name: List files with wrong format | |
run: "gci list . | sed 's/^/BadFormat: /'" | |
- name: Formatting check gci | |
run: "[ $(gci list . | wc -c) -eq 0 ] && exit 0 || exit 1" |