-
Notifications
You must be signed in to change notification settings - Fork 31
53 lines (39 loc) · 1.24 KB
/
integration_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
48
49
50
51
52
53
---
name: Integration tests
on:
push:
pull_request:
branches: [ main, rhel*-branch ]
release:
types: [ published, created ]
permissions:
contents: read
jobs:
buildCheck:
runs-on: ubuntu-22.04
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt install -y libpopt-dev libselinux1-dev libnewt-dev gettext
- name: Build & install
run: make all && make install DESTDIR=/tmp/chkconfig
unitTests:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
needs: buildCheck
steps:
- name: Repository checkout
uses: actions/checkout@v4
- name: Clone beakerlib repository
run: git clone --depth=1 https://github.com/beakerlib/beakerlib.git
- name: Build and install beakerlib
run: cd beakerlib && sudo make && sudo make install && cd -
- name: Install dependencies required by Makefile
run: sudo apt install -y libpopt-dev libselinux1-dev libnewt-dev gettext
- name: Install dependencies required by test-alternatives.sh
run: sudo apt install -y libxml2-dev libxslt-dev python3-dev python3-lxml
- name: Build && Test
run: make check