🐛 guard against nil aws account asset in discovery #1485
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
name: Extended Linting | |
## Only trigger tests if source is changing | |
on: | |
pull_request: | |
paths: | |
- '**.go' | |
- '**.mod' | |
- 'go.sum' | |
jobs: | |
golangci-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Import environment variables from file | |
run: cat ".github/env" >> $GITHUB_ENV | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ">=${{ env.golang-version }}" | |
cache: false | |
- name: Generate test files | |
run: make test/generate | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: latest | |
args: --config=.github/.golangci.yml --timeout=30m | |
only-new-issues: true |