forked from rust-unofficial/patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.17 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
43
44
45
46
47
48
49
50
51
52
53
name: Continuous Integration
on:
push:
branches: [main]
pull_request:
jobs:
deploy-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Read .env
id: mdbook-version
run: |
. ./.env
echo "::set-output name=MDBOOK_VERSION::${MDBOOK_VERSION}"
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '${{ steps.mdbook-version.outputs.MDBOOK_VERSION }}'
- run: mdbook build
doc-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Read .env
id: mdbook-version
run: |
. ./.env
echo "::set-output name=MDBOOK_VERSION::${MDBOOK_VERSION}"
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '${{ steps.mdbook-version.outputs.MDBOOK_VERSION }}'
- run: mdbook test
markdown-lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Lint all files recursively
uses: avto-dev/markdown-lint@v1
with:
config: '.markdownlint.yaml'
args: '**/*.md'