forked from linode/ansible_linode
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.06 KB
/
docs.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
name: Run Documentation Validation
on: pull_request
jobs:
run-docs-validation:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .ansible/collections/ansible_collections/linode/cloud
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
path: .ansible/collections/ansible_collections/linode/cloud
- name: update packages
run: sudo apt-get update -y
- name: install packages
run: sudo apt-get install -y make
- name: setup python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: install dependencies
run: make deps
- name: make temp directory
run: mkdir tmp
- name: copy over old readme
run: cp README.md tmp/README.md
- name: generate new docs
run: DOCS_PATH=tmp/docs make gendocs
- name: compare docs
run: diff -r docs tmp/docs
- name: compare README
run: diff -r README.md tmp/README.md
- name: clean up
run: rm -rf tmp