Skip to content

feat:pre commit lints #3

feat:pre commit lints

feat:pre commit lints #3

Workflow file for this run

name: lint
on:
pull_request:
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: golangci-lint-server
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
working-directory: server
args: --timeout=30m
- name: golangci-lint-client
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
working-directory: client
args: --timeout=30m
- run: go install golang.org/x/tools/cmd/goimports@latest
- name: pre-commit
uses: pre-commit/[email protected]