-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (48 loc) · 1.65 KB
/
docker-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
54
name: Setup kdevops
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
setup-and-make:
name: Setup and Run Make Targets
runs-on: ubuntu-latest
strategy:
matrix:
distro_container:
- debian:testing
- fedora:latest
- opensuse/tumbleweed
container: ${{ matrix.distro_container }}
steps:
- name: Document supported kdevops distribution
run: |
echo "Running test on ${{ matrix.distro_container }} container"
uname -a
- name: Install kdevops dependencies
run: |
# Conditional package installation based on the container
if [ "${{ matrix.distro_container }}" = "debian:testing" ]; then
echo "Installing packages for Debian"
apt-get update
apt-get install -y ansible-core make gcc ncurses-dev bison flex
elif [ "${{ matrix.distro_container }}" = "fedora:latest" ]; then
echo "Installing packages for Fedora"
dnf install -y ansible make gcc ncurses-devel bison flex
elif [ "${{ matrix.distro_container }}" = "opensuse/tumbleweed" ]; then
echo "Installing packages for OpenSUSE"
zypper refresh
zypper install -y ansible make gcc ncurses-devel bison flex
else
echo "Unknown distribution: ${{ matrix.distro_container }}"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v2
- name: Run make targets
run: |
echo "Running simple make targets on ${{ matrix.distro_container }} environment"
make mrproper