-
-
Notifications
You must be signed in to change notification settings - Fork 158
75 lines (52 loc) · 1.43 KB
/
install-qa-installfile.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
name: Install QA - install-snoopy.sh
on:
workflow_dispatch:
push:
branches:
- master
- install
paths:
- 'install/install-snoopy.sh'
pull_request:
branches:
- master
- install
paths:
- 'install/install-snoopy.sh'
jobs:
install-qa-test-installfile:
name: Test install-snoopy.sh ${{matrix.install_mode}}
runs-on: ubuntu-20.04
container: ubuntu:20.04
strategy:
matrix:
install_mode:
- stable
- git-master
- download
###
### Steps to run
###
steps:
### Fetch the code
#
- uses: actions/checkout@v2
with:
fetch-depth: 0
# Work around the fix for CVE-2022-24765
- run: git config --global --add safe.directory $GITHUB_WORKSPACE || true
### Install
#
- run: ./install/install-snoopy.sh ${{matrix.install_mode}}
### Verify Snoopy operation (or successful download)
#
- 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"
if: ${{ matrix.install_mode != 'download' }}
- name: Verify Snoopy download
run: ls -la snoopy-*.tar.gz
if: ${{ matrix.install_mode == 'download' }}