forked from osbuild/osbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.34 KB
/
generate.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
54
55
name: Generate
on: [pull_request, push]
jobs:
generate_documentation:
name: "Documentation"
runs-on: ubuntu-latest
container:
image: docker.io/library/python:3.7
steps:
- name: Install Dependencies
run: |
pip install docutils
- name: Clone repository
uses: actions/checkout@v4
with:
path: osbuild
- name: Generate Documentation
run: |
make \
-f osbuild/Makefile \
SRCDIR=osbuild \
BUILDDIR=build \
RST2MAN=rst2man.py \
man
- name: Verify Documentation
working-directory: build
run: |
test -d docs
test -f docs/osbuild.1
generate_test_data:
name: "Test Data"
runs-on: ubuntu-latest
env:
OSBUILD_MPP_CACHEDIR: "/var/tmp/osbuild-mpp-cache"
steps:
- name: "Clone Repository"
uses: actions/checkout@v4
- name: Cache metadata
uses: actions/cache@v4
with:
path: /var/tmp/osbuild-mpp-cache
key: no-key-needed-here
- name: "Regenerate Test Data"
uses: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b
with:
image: ghcr.io/osbuild/osbuild-ci:latest-202304251412
run: |
make test-data
git diff --exit-code -- ./test/data