forked from restraint-harness/restraint
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 1.69 KB
/
merge-checks.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
name: Merge-checks
on:
push:
branches:
- master
jobs:
unittests:
strategy:
fail-fast: false
matrix:
image:
- quay.io/fedora/fedora:38
- quay.io/fedora/fedora:39
- quay.io/fedora/fedora:40
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- uses: actions/checkout@v1
- name: Install deps
run: |
dnf install -y 'dnf-command(builddep)' git-daemon python3-flask python3-requests python3-pytest python3-six procps-ng
- name: Install restraint deps
run: |
dnf builddep --spec specfiles/restraint-upstream.spec -y
- name: Run tests
run: |
set -o pipefail
make check | tee unittests.out
mv unittests.out /__w/unittests.out
- uses: actions/upload-artifact@v1
with:
name: unittests.out
path: /home/runner/work/unittests.out
valgrind:
strategy:
fail-fast: false
matrix:
image:
- quay.io/fedora/fedora:38
- quay.io/fedora/fedora:39
- quay.io/fedora/fedora:40
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
steps:
- uses: actions/checkout@v1
- name: Install deps
run: |
dnf install -y 'dnf-command(builddep)' valgrind git-daemon procps-ng
- name: Install restraint deps
run: |
dnf builddep --spec specfiles/restraint-upstream.spec -y
- name: Run valgrind
run: |
set -o pipefail
make valgrind 2>&1 | tee valgrind.out
mv valgrind.out /__w/valgrind.out
- uses: actions/upload-artifact@v1
with:
name: valgrind.out
path: /home/runner/work/valgrind.out