Skip to content

ci: 1

ci: 1 #13

Workflow file for this run

name: Lint and Style Check
on:
pull_request:
push:
branches:
- main
jobs:
lint:
name: Lint and Style Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.0'
cache: false
- name: Install dependencies
run: |
go mod download
go mod tidy
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
- name: Run golangci-lint
run: |
golangci-lint run --timeout=5m \
--skip-dirs=vendor,third_party,node_modules,plugins,config,graphql,net,example,internal \
--skip-files=".*\\.pb\\.go$,.*\\.gen\\.go$,.*\\.mock\\.go$,.*\\.tpl$,.*_gen\\.go$" \
--modules-download-mode=readonly \
./...