-
-
Notifications
You must be signed in to change notification settings - Fork 154
115 lines (76 loc) · 2.15 KB
/
install-qa-os-matrix.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Install QA - OS Matrix
on:
workflow_dispatch:
push:
branches:
- install
tags:
- '*'
paths:
- 'install/install-snoopy.sh'
pull_request:
branches:
- master
paths:
- 'install/install-snoopy.sh'
jobs:
install-qa-os-matrix:
name: Install on ${{matrix.container}}
runs-on: ubuntu-20.04
### Define the list of container images
#
container: ${{ matrix.container }}
strategy:
matrix:
container:
#FIXME uncomment once Snoopy 2.5.0 containing Alpine-/musl-related fixes is released
# - alpine:3.14
# - alpine:3.15
# - alpine:3.16
- archlinux:base-devel
- almalinux/8-base:latest
- almalinux/9-base:latest
- quay.io/centos/centos:stream9
- debian:buster
- debian:bullseye
- debian:bookworm
- debian:sid
- opensuse/leap:15.4
- opensuse/leap:15.5
- opensuse/tumbleweed:latest
- ubuntu:20.04
- ubuntu:22.04
- ubuntu:24.04
- ubuntu:rolling
###
### Steps to run
###
steps:
### Install requirements for the subsequent checkout action
#
# Alpine
- run: apk add bash
if: ${{ startsWith(matrix.container, 'alpine:') }}
# SUSE / OpenSUSE
- run: zypper -n install gzip tar
if: ${{ startsWith(matrix.container, 'opensuse/') }}
### Fetch the code
#
- uses: actions/checkout@v2
# Work around the fix for CVE-2022-24765
- run: git config --global --add safe.directory $GITHUB_WORKSPACE || true
### Install
#
- run: ./install/install-snoopy.sh stable
### Report debugging info on failure
#
- run: cat install-snoopy.log
if: failure()
### Verify Snoopy operation
#
- name: Verify Snoopy operation
run: |
touch /var/log/snoopy.log
echo "output = file:/var/log/snoopy.log" >> /etc/snoopy.ini
/bin/echo "Snoopy is alive and well"
cat /var/log/snoopy.log | grep -v ': grep' | grep "Snoopy is alive and well"