Skip to content

Cobalt0s is running the linter #6447

Cobalt0s is running the linter

Cobalt0s is running the linter #6447

Workflow file for this run

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"