Skip to content

Commit fbfcc40

Browse files
committed
Add github tests for deb package building
As i spotted repository have only gitlab-ci tests, it will be handy for contributors to have also github tests. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 67b0736 commit fbfcc40

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Run tests
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
pull_request_target:
10+
branches:
11+
- master
12+
13+
jobs:
14+
Native-Deb-packaging:
15+
strategy:
16+
matrix:
17+
os: [ubuntu-20.04, ubuntu-22.04]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Check out repository code
21+
uses: actions/checkout@v3
22+
with:
23+
submodules: 'true'
24+
fetch-depth: 0
25+
path: "ripe-atlas-software-probe"
26+
- name: Set up necessary dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y git tar fakeroot libssl-dev libcap2-bin autoconf automake libtool build-essential
30+
- name: Build the software probe deb package
31+
run: |
32+
./ripe-atlas-software-probe/build-config/debian/bin/make-deb
33+
Docker-Deb-packaging:
34+
strategy:
35+
matrix:
36+
docker-image: ["debian:bullseye", "debian:buster", "debian:bookworm", "ubuntu:23.10", "ubuntu:24.04"]
37+
runs-on: ubuntu-22.04
38+
container:
39+
image: ${{ matrix.docker-image }}
40+
steps:
41+
- name: Install necessary dependencies
42+
run: |
43+
apt-get update
44+
apt-get install -y git tar fakeroot libssl-dev libcap2-bin autoconf automake libtool build-essential
45+
- name: Check out repository code
46+
uses: actions/checkout@v3
47+
with:
48+
fetch-depth: 0
49+
path: "ripe-atlas-software-probe"
50+
- name: Checkout submodules
51+
run: |
52+
cd ripe-atlas-software-probe
53+
git submodule update --init --recursive
54+
- name: Build the software probe deb package
55+
run: |
56+
./ripe-atlas-software-probe/build-config/debian/bin/make-deb

0 commit comments

Comments
 (0)