Skip to content

Add golangci-lint for static check. #23

Add golangci-lint for static check.

Add golangci-lint for static check. #23

Workflow file for this run

name: Golangci Lint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
pull-requests: read
checks: write
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: "1.21.1"
- run: |
go clean -modcache

Check failure on line 26 in .github/workflows/golangci-lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/golangci-lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
go mod tidy
- name: Run golangci-lint
uses: golangci/[email protected]