-
Notifications
You must be signed in to change notification settings - Fork 56
71 lines (66 loc) · 2.55 KB
/
test_distros.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Test distros
on:
pull_request:
branches:
- master
- development
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "centos_8"
registry: quay.io/centos/centos:stream8
- name: "centos_9"
registry: quay.io/centos/centos:stream9
- name: "ubuntu_22.04"
registry: mirror.gcr.io/library/ubuntu:22.04
- name: "ubuntu_20.04"
registry: mirror.gcr.io/library/ubuntu:20.04
- name: "debian_12"
registry: mirror.gcr.io/library/debian:bookworm
- name: "debian_11"
registry: mirror.gcr.io/library/debian:bullseye
- name: "fedora_latest"
registry: quay.io/fedora/fedora:latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run container
run: >
sudo
podman run
--pull always
--detach
--rm
--tty
--privileged
--network=host
--name ${{ matrix.name }}
--mount type=bind,src="$(pwd)",dst=/recap
${{ matrix.registry }}
- name: Install in container
run: >
sudo
podman exec
${{ matrix.name }}
bash -c '/recap/tests/install_deps.sh ${{ matrix.name }} && /recap/tests/test_install_recap.sh'
- name: Run Tests in container
run: |
sudo podman exec ${{ matrix.name }} bash -c 'recap --version'
sudo podman exec ${{ matrix.name }} bash -c 'recaplog --version'
sudo podman exec ${{ matrix.name }} /recap/tests/run_recap.sh
sudo podman exec ${{ matrix.name }} bash -c 'ls -tr /var/log/recap/*log | xargs tail -v -n+0'
sudo podman exec ${{ matrix.name }} /recap/tests/run_recaplog.sh
sudo podman exec ${{ matrix.name }} bash -c 'tail -v -n+0 /var/log/recap/recaplog.log'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p list'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p list enabled'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p enable all'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p list enabled'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p list disabled'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p disable all'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p list disabled'
sudo podman exec ${{ matrix.name }} bash -c 'recap -p list enabled'