Skip to content

ci: add golangci-lint #1

ci: add golangci-lint

ci: add golangci-lint #1

Workflow file for this run

name: Lint and Check Formatting
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint and Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
- name: Install dependencies
run: go mod download
- name: Generate GraphQL code
run: go generate .
- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
- name: Run gofumpt
run: go tool gofumpt -d -l .