--- name: Linting on: pull_request: permissions: {} jobs: apply-suggestions-commits: name: 'No "Apply suggestions from code review" Commits' runs-on: ubuntu-latest steps: - name: Get PR commits id: 'get-pr-commits' uses: tim-actions/get-pr-commits@198af03565609bb4ed924d1260247b4881f09e7d with: token: ${{ secrets.GITHUB_TOKEN }} - name: 'Verify no "Apply suggestions from code review" commits' uses: tim-actions/commit-message-checker-with-regex@094fc16ff83d04e2ec73edb5eaf6aa267db33791 with: commits: ${{ steps.get-pr-commits.outputs.commits }} pattern: '^(?!.*(apply suggestions from code review))' flags: 'i' error: 'Commits addressing code review feedback should typically be squashed into the commits under review' - name: 'Verify no "fixup!" commits' uses: tim-actions/commit-message-checker-with-regex@094fc16ff83d04e2ec73edb5eaf6aa267db33791 with: commits: ${{ steps.get-pr-commits.outputs.commits }} pattern: '^(?!fixup!)' flags: 'i' error: 'Fixup commits should be squashed into the commits under review' chart-testing: name: Helm Chart Linting runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Set up Helm uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 with: version: v3.6.0 - name: Set up Python uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 with: python-version: '3.x' - name: Set up helm/chart-testing uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b - name: Set up local helm repo run: make local-helm-repo - name: Run helm/chart-testing (lint) run: ct lint --config ct.yaml gitlint: name: Commit Message(s) runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with: fetch-depth: 0 - name: Run gitlint run: make gitlint helm-docs: name: Helm Docs Generation runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Run helm-docs and verify docs are up-to-date run: make helm-docs markdown-link-check: name: Markdown Links (modified files) runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Run markdown-link-check uses: gaurav-nelson/github-action-markdown-link-check@1b916f2cf6c36510a6059943104e3c42ce6c16bc with: config-file: ".markdownlinkcheck.json" check-modified-files-only: "yes" base-branch: ${{ github.base_ref }} markdownlint: name: Markdown runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Run markdownlint run: make markdownlint yaml-lint: name: YAML runs-on: ubuntu-latest steps: - name: Check out the repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - name: Run yamllint run: make yamllint