Skip to content

🟢 Add tests for All and Auto discovery list resolution (aws, azure, gcp) #7214

🟢 Add tests for All and Auto discovery list resolution (aws, azure, gcp)

🟢 Add tests for All and Auto discovery list resolution (aws, azure, gcp) #7214

name: Extended Linting
## Only trigger tests if source is changing
on:
pull_request:
paths:
- "**.go"
- "**.mod"
- "go.sum"
- ".github/workflows/pr-extended-linting.yml"
- ".github/workflows/reusable-lint-providers.yml"
permissions:
contents: read
pull-requests: read
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Import environment variables from file
run: cat ".github/env" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.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@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.10.1
args: --config=.github/.golangci.yaml --timeout=30m
only-new-issues: true
skip-cache: true
golangci-lint-providers:
uses: ./.github/workflows/reusable-lint-providers.yml
with:
only-new-issues: true