From 207aee2ebacb1a7d20d87fbd0b853cb98dab8fb3 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Thu, 12 Dec 2024 08:01:37 +1300 Subject: [PATCH] ci: explore running linting on just new changes --- .github/workflows/go.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 932db2ea..b070d3ee 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,6 +24,22 @@ jobs: with: version: v1.61.0 args: --timeout=5m + # TODO(#346): we're exploring if only-new-issues will help reduce friction in PRs + lint-just-new: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: 1.22.x + + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.61.0 + only-new-issues: true + args: --timeout=5m tests: strategy: matrix: