Gomod changes and minor updates #2866
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# golangci-feature runs on pull requests from branches that do not target main. | |
# | |
# Working on feature branches (PRs where the PR base-ref != main) is a common | |
# workflow used, in order to make the merging of PRs easier certain lints are excluded | |
# when it makes sense. Currently, unused lints are excluded since many PRs will add | |
# unused code that will be used in a later PR. | |
name: golangci-lint feature branch | |
on: | |
pull_request: | |
# Ignore if the target is main. (Negation of golanci-lint.yml) | |
branches-ignore: | |
- main | |
permissions: | |
contents: read | |
# Optional: allow read access to pull request. Use with `only-new-issues` option. | |
pull-requests: read | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.57.2 | |
only-new-issues: true | |
args: --timeout 10m |