Skip to content

Commit

Permalink
Add github tests for deb package building
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nuclearcat committed Apr 20, 2024
1 parent 67b0736 commit 672595c
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Run tests

on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- add-github-tests
pull_request_target:
branches:
- master

jobs:
Native-Deb-packaging:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
submodules: 'true'
fetch-depth: 0
path: "ripe-atlas-software-probe"
- name: Set up necessary dependencies
run: |
sudo apt-get update
sudo apt-get install -y git tar fakeroot libssl-dev libcap2-bin autoconf automake libtool build-essential
- name: Build the software probe deb package
run: |
./ripe-atlas-software-probe/build-config/debian/bin/make-deb
Docker-Deb-packaging:
strategy:
matrix:
docker-image: ["debian:bullseye", "debian:buster", "debian:bookworm", "ubuntu:23.10", "ubuntu:24.04"]
runs-on: ubuntu-22.04
container:
image: ${{ matrix.docker-image }}
steps:
- name: Install necessary dependencies
run: |
apt-get update
apt-get install -y git tar fakeroot libssl-dev libcap2-bin autoconf automake libtool build-essential
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 0
path: "ripe-atlas-software-probe"
- name: Checkout submodules
run: |
cd ripe-atlas-software-probe
git submodule update --init --recursive
- name: Build the software probe deb package
run: |
./ripe-atlas-software-probe/build-config/debian/bin/make-deb

0 comments on commit 672595c

Please sign in to comment.