-
Notifications
You must be signed in to change notification settings - Fork 2
88 lines (76 loc) · 2.13 KB
/
Copy pathlint.yml
File metadata and controls
88 lines (76 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Lint
# Lint runs golangci-lint over the entire Cosmos EVM repository
# This workflow runs on every pull request and merge queue
on:
pull_request:
merge_group:
# cancel superseded runs
concurrency:
group: lint-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
permissions: read-all
jobs:
# Disabled golangci-lint job
# golangci:
# name: Run golangci-lint
# runs-on: ubuntu-24.04
# timeout-minutes: 15
# steps:
# - uses: actions/setup-go@v5
# with:
# go-version: "1.24"
# check-latest: true
# - uses: actions/checkout@v4
# - name: Cache Go modules
# uses: actions/cache@v4
# with:
# path: |
# ~/.cache/go-build
# ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
# # Determine diff so we don't lint when no Go files are changed
# - uses: technote-space/get-diff-action@v6.1.2
# with:
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# *.toml
# - name: Run linting
# if: env.GIT_DIFF
# id: lint_long
# run: |
# make lint-go
markdown-lint:
name: markdownlint (cli2, minimal)
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read # read-only permissions
steps:
# Standard checkout for all cases
- name: Checkout
uses: actions/checkout@v4
# Only run if markdown or configs changed
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/*.md
.markdownlint.yml
.markdownlintignore
# Stable Node
- uses: actions/setup-node@v4
if: env.GIT_DIFF
with:
node-version: "20"
# Lint: check only, fail on errors
- name: markdownlint (check only)
id: md_lint
if: env.GIT_DIFF
uses: DavidAnson/markdownlint-cli2-action@v16
with:
globs: "**/*.md"
config: .markdownlint.yml
fix: false