forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 997 Bytes
/
docs-linter.yml
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
name: Docs Linter
on:
push:
branches:
- master
pull_request:
paths:
- "docs/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go (docs builder)
uses: actions/setup-go@v5
with:
go-version-file: misc/devdeps/go.mod
- name: Install dependencies (docs builder)
working-directory: misc/devdeps
run: go mod download
- name: Build docs
run: make -C docs/ build
- name: Check diff
run: git diff --exit-code || (echo "Some docs files are not formatted, please run 'make build'." && exit 1)
- name: Set up Go (docs linter)
uses: actions/setup-go@v5
with:
go-version-file: misc/docs-linter/go.mod
- name: Install dependencies (docs linter)
working-directory: misc/docs-linter
run: go mod download
- name: Run linter
run: make -C docs/ lint