Skip to content

feat: add lint workflow #1

feat: add lint workflow

feat: add lint workflow #1

Workflow file for this run

name: Lint
on:
push:
pull_request:
jobs:
golangci-lint:
name: Run on Ubuntu
runs-on: ubuntu-latest
steps:
- name: Clone the code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '~1.22'
- 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.63.4
- name: Run golangci-lint
run: |
golangci-lint run