Skip to content

Lint

Lint #3792

Workflow file for this run

name: Lint
permissions:
contents: read
on:
pull_request:
merge_group:
jobs:
actionlint:
name: Github Actions lint
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Check workflow files
uses: docker://rhysd/actionlint:latest
with:
args: -color -ignore SC2086
dockerlint:
name: dockerfile-lint
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: dockerfile-lint
run: docker build --check .
golangci:
name: golangci-lint
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install Go # We need the go binary to be available to run some checks (formatter, gomod_salt, ...)
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v2.13
args: --timeout 10m
spelling:
name: Spell Check with Typos
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
steps:
- name: Checkout Actions Repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install wget
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends wget
- name: Spell Check Repo
uses: crate-ci/typos@bee27e3a4fd1ea2111cf90ab89cd076c870fce14 # v1.48.0
env:
CLICOLOR: 1
rumdl:
name: rumdl
runs-on: "${{ vars.RUNS_ON || 'ubuntu-latest' }}"
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: rumdl
uses: rvben/rumdl@95a982d941d00cf41a0dcef4d0788bd15a29be1b # v0.2.54