name: scripts on: pull_request: branches: - master paths: - ".github/workflows/scripts.yaml" - "scripts/**" permissions: contents: 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: [artifacthub, require-sync, validate, website] steps: - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: '1.20' cache: false - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: golangci-lint uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0 with: version: v2.1.0 working-directory: scripts/${{ matrix.folder }}