Skip to content

Fix Fleet API protection bugs and add two-phase secret deletion #4

Fix Fleet API protection bugs and add two-phase secret deletion

Fix Fleet API protection bugs and add two-phase secret deletion #4

Workflow file for this run

name: golangci-lint
on:
pull_request:
branches:
- main
paths:
- ".github/workflows/golangci-lint.yml"
- "argocd-clusterprofile-syncer/**"
- "fleet-argocd-plugin/**"
permissions:
contents: read
pull-requests: read
concurrency:
group: '$${{ github.workflow }}-$${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
folder:
- argocd-clusterprofile-syncer
- fleet-argocd-plugin
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
id: changes
with:
filters: |
src:
- ${{ matrix.folder }}/**
- ".github/workflows/golangci-lint.yml"
- if: steps.changes.outputs.src == 'true'
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version-file: ${{ matrix.folder }}/go.mod
cache-dependency-path: ${{ matrix.folder }}/go.sum
- if: steps.changes.outputs.src == 'true'
name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8
with:
version: latest
working-directory: ${{ matrix.folder }}
args: --timeout=5m
- if: steps.changes.outputs.src == 'true'
name: go-test
working-directory: ${{ matrix.folder }}
run: go test -v -race -count=1 ./...