Skip to content

golangci-lint

golangci-lint #68

Workflow file for this run

name: golangci-lint
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: "23 6 * * 1"
permissions:
contents: read
pull-requests: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
with:
path: common
# Sibling checkout (proto) — common itself is the repo under test, so
# only proto is fetched as a sibling for the replace directive.
- uses: actions/checkout@v7
with:
repository: InstaNode-dev/proto
path: proto
continue-on-error: true
- uses: actions/setup-go@v6
with:
go-version-file: common/go.mod
- uses: golangci/golangci-lint-action@v9
with:
version: latest
working-directory: common
args: --timeout=5m