Skip to content

🎉 aws-11.5.78

🎉 aws-11.5.78 #5184

name: Extended Linting
## Only trigger tests if source is changing
on:
pull_request:
paths:
- '**.go'
- '**.mod'
- 'go.sum'
jobs:
golangci-lint:
permissions:
# allow read access to the content for analysis.
contents: read
# allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
# allow write access to checks to allow the action to annotate code in the PR.
checks: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
with:
go-version: ">=${{ env.golang-version }}"
cache: false
- name: Generate test files
run: make test/generate
- name: Run golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: latest
args: --config=.github/.golangci.yaml --timeout=30m
only-new-issues: true
skip-cache: true