Skip to content

Lint

Lint #810

Workflow file for this run

name: Lint
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '36 15 * * 5'
permissions:
contents: read
jobs:
eslint:
permissions:
security-events: write
checks: write
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup UI dependencies
uses: ./.github/actions/setup-ui-deps
- name: Run ESLint
working-directory: ./ui
run: >-
pnpm eslint .
--format @microsoft/eslint-formatter-sarif
--output-file eslint-results.sarif
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
sarif_file: ./ui/eslint-results.sarif
wait-for-processing: true
golangci-lint:
name: GolangCI Lint
runs-on: ubuntu-latest
permissions:
security-events: write
checks: write
steps:
- name: Checkout Actions Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: '1.23.2'
cache: false
check-latest: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: 'latest'
install-mode: 'binary'
args: '--out-format=colored-line-number,sarif:golangci-lint-results.sarif'
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
sarif_file: ./golangci-lint-results.sarif
wait-for-processing: true
typos:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: typos-action
uses: crate-ci/typos@b74202f74b4346efdbce7801d187ec57b266bac8 # v1.27.3
with:
config: typos.toml