runners: add simple unit test #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
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 | |
steps: | |
- name: "Clone Repository" | |
uses: actions/checkout@v3 | |
- 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 |