Skip to content

golangci-lint

golangci-lint #1391

Workflow file for this run

name: golangci-lint
on:
push:
pull_request:
schedule:
# Run every 12 hours, at the 15 minute mark. E.g.
# 2020-11-29 00:15:00 UTC, 2020-11-29 12:15:00 UTC, 2020-11-30 00:15:00 UTC
- cron: '15 */12 * * *'
jobs:
golangci:
name: Lint Sourcecode
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.20
- name: Install golangci-lint
run: |
wget https://github.com/golangci/golangci-lint/releases/download/v1.55.2/golangci-lint-1.55.2-linux-amd64.deb
sudo apt install -y ./golangci-lint-1.55.2-linux-amd64.deb
- name: Run golangci-lint
run: |
cd v3
golangci-lint run