Skip to content

Update github actions (main) (major) #8033

Update github actions (main) (major)

Update github actions (main) (major) #8033

Workflow file for this run

name: Lint & Formatting
on:
pull_request:
branches:
- main
merge_group:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.ref_name }}-lint-format
cancel-in-progress: true
permissions:
contents: read
jobs:
format:
name: Format
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Golang Environment
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: go.mod
- name: Run goimports & gofumpt
run: |
make format
git diff --exit-code
lint:
name: Lint
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: read # for golangci-lint-action
steps:
- name: Checkout Repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Golang Environment
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: go.mod
- name: Lint Code
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
with:
only-new-issues: true
actionlint:
name: Actionlint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: reviewdog/action-actionlint@437bbe918b0d29544cbf9e8b1d63fe6f4e7a881d # v1.69.0
with:
actionlint_flags: -shellcheck ""
chart-lint:
name: Chart Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Setup Helm
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
with:
version: 'v3.18.6'
- name: Lint chart
run: helm lint charts/nginx-ingress
markdown-lint:
name: Markdown Lint
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: DavidAnson/markdownlint-cli2-action@30a0e04f1870d58f8d717450cc6134995f993c63 # v21.0.0
with:
config: .markdownlint-cli2.yaml
globs: "**/*.md"
fix: false