CNS should not mark itself as ready if it can't write out a conflist. #18514
Workflow file for this run
This file contains hidden or 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: golangci-lint | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| merge_group: | |
| types: | |
| - checks_requested | |
| jobs: | |
| generate: | |
| name: Generate BPF Handling Code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run go generate | |
| run: make bpf-lib && go generate ./... | |
| - name: Upload generated code | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: generated-bpf-program-code | |
| path: ./bpf-prog/azure-block-iptables/pkg/blockservice | |
| golangci: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| name: Lint | |
| needs: generate | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Download generated code | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: generated-bpf-program-code | |
| path: ./bpf-prog/azure-block-iptables/pkg/blockservice | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| args: ${{ github.event_name == 'pull_request' && format('--new-from-rev=origin/{0}', github.base_ref) || '' }} --config=.golangci.yml --timeout=25m |