Skip to content

change(config): rename git backend filesystem to local #7851

change(config): rename git backend filesystem to local

change(config): rename git backend filesystem to local #7851

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
GO_VERSION: "1.21"
jobs:
go-lint:
name: "Lint Go"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: golangci-lint
uses: golangci/[email protected]
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.54.2
skip-pkg-cache: true
skip-build-cache: true
args: --timeout=10m
markdown-lint:
name: "Lint Markdown"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v16
with:
config: .markdownlint.yaml
globs: |
**/*.md
!**/test/**/*
ui-lint:
name: "Lint UI"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache-dependency-path: ui/package-lock.json
- name: Lint
run: |
npm ci
npm run lint
working-directory: ui
go-mod-tidy:
name: "Go Mod Tidy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Run go mod tidy.
run: go mod tidy
- name: Ensure clean git state.
run: git diff-index --quiet HEAD -- || (echo "Please run 'go mod tidy' and commit changes." && exit 1)