-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (38 loc) · 1.01 KB
/
ci.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
name: Continuous Integration
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install mdbook
run: cargo install mdbook
- name: Build book
run: mdbook build
format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.17.2"
- name: Install vmdfmt
run: go install github.com/bobertlo/vmd/cmd/vmdfmt@latest
- name: Check formatting
run: |
export PATH="$PATH:/tmp/go/bin:$(pwd)/node_modules/.bin"
./ci/check_format.sh
links:
name: Check links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -v -r -c 30 *
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}