-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (30 loc) · 1.18 KB
/
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
name: Test the shim
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- base_image: fedora:latest
install_deps_cmd: dnf -y install git-core python3-pip python3-rpm
- base_image: centos:stream9
install_deps_cmd: dnf -y install git-core python3-pip python3-rpm
- base_image: registry.access.redhat.com/ubi9:latest
install_deps_cmd: dnf -y install git-core python{3,3.11}-pip python3-rpm && python3 -m pip install -U requests && python3.11 -m pip install -U requests
- base_image: ubi8:latest
install_deps_cmd: dnf -y install git-core python3-pip python3-rpm
- base_image: opensuse/leap:latest
install_deps_cmd: zypper -n install git-core python3-pip python3-rpm
- base_image: ubuntu:latest
install_deps_cmd: apt-get -y update && apt-get -y install git python3-pip python3-rpm
steps:
- uses: actions/checkout@v2
- name: Run the tests
env:
BASE_IMAGE: ${{ matrix.base_image }}
INSTALL_DEPS_CMD: ${{ matrix.install_deps_cmd }}
run: make test