-
Notifications
You must be signed in to change notification settings - Fork 135
47 lines (38 loc) · 1.36 KB
/
podman-tests.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: Test podman.md
on:
push:
branches:
- v3
pull_request:
paths:
- 'documentation/docs/install-pmm/install-pmm-server/baremetal/podman.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install pandoc
run: |
wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-1-amd64.deb
sudo apt-get install -y ./pandoc-2.18-1-amd64.deb
rm pandoc-2.18-1-amd64.deb
- name: Copy test template
run: cp documentation/resources/bin/doc_test_template.sh ./documentation/docs_test_podman.sh
- name: Get CodeBlocks and push them to test template
run: pandoc -i documentation/docs/install-pmm/install-pmm-server/baremetal/podman.md --lua-filter documentation/resources/bin/CodeBlock.lua -t html -o /dev/null >> documentation/docs_test_podman.sh
- name: Run podman tests
run: ./documentation/docs_test_podman.sh
- name: Get debug
if: ${{ failure() }}
run: |
cat ./documentation/docs_test_podman.sh
pandoc --version
podman version
podman ps --all || true
systemctl status --user pmm-server || true
podman inspect pmm-server || true
journalctl -r || true