refactor: Use bundle instead of SDK for Cert Manager #914
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: CI golangci-lint | |
on: | |
pull_request: | |
types: [ assigned, opened, synchronize, reopened ] | |
env: | |
GOLANGCI_VERSION: 'v1.54.0' | |
DOCKER_BUILDX_VERSION: 'v0.11.2' | |
jobs: | |
detect-noop: | |
runs-on: ubuntu-20.04 | |
outputs: | |
noop: ${{ steps.noop.outputs.should_skip }} | |
steps: | |
- name: Detect No-op Changes | |
id: noop | |
uses: fkirc/skip-duplicate-actions@v5.3.1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
paths_ignore: '["**.md", "**.png", "**.jpg","docs/**.md", "examples/**.yaml"]' | |
do_not_skip: '["workflow_dispatch", "schedule", "push"]' | |
concurrent_skipping: false | |
lint: | |
runs-on: ubuntu-20.04 | |
needs: detect-noop | |
if: needs.detect-noop.outputs.noop != 'true' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Find the Go Build Cache | |
id: go | |
run: echo "::set-output name=cache::$(go env GOCACHE)" | |
- name: Cache the Go Build Cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.go.outputs.cache }} | |
key: ${{ runner.os }}-build-lint-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-build-lint- | |
- name: Cache Go Dependencies | |
uses: actions/cache@v4 | |
with: | |
path: .work/pkg | |
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} | |
restore-keys: ${{ runner.os }}-pkg- | |
# - name: Vendor Dependencies | |
# run: make vendor vendor.check | |
- name: Lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
only-new-issues: true | |
version: ${{ env.GOLANGCI_VERSION }} | |
args: --timeout 10m0s --verbose |