blob: 06cc44192ae447afb273bc718339fe18f65eb7e0 (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
name: Test
on:
push:
branches:
- '*'
pull_request:
jobs:
# macos:
# name: Running tests on ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os:
# - macos-10.15
# runs-on: ${{ matrix.os }}
# steps:
#
# - name: Git clone repository
# uses: actions/checkout@v2
# #- name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate
# # uses: mxschmitt/action-tmate@v3
# - name: Prepare machine
# run: |
# brew install automake
# - name: Run the tests
# run: |
# tools/setup \
# && ./configure --enable-libtap \
# && make \
# && make test
linux:
runs-on: ubuntu-latest
name: Running tests on ${{ matrix.distro }}
strategy:
fail-fast: false
matrix:
distro:
#- 'debian:10'
- 'debian:testing'
#- 'ubuntu:20.10'
#- 'centos:7'
#- 'centos:8'
include:
#- distro: 'debian:10'
# prepare: .github/prepare_debian.sh
- distro: 'debian:testing'
prepare: .github/prepare_debian.sh
#- distro: 'ubuntu:20.10'
# prepare: .github/prepare_debian.sh
#- distro: 'centos:7'
# prepare: .github/prepare_centos.sh
#- distro: 'centos:8'
# prepare: .github/prepare_centos.sh
steps:
- name: Git clone repository
uses: actions/checkout@v2
#- name: Setup tmate session, see https://github.com/marketplace/actions/debugging-with-tmate
# uses: mxschmitt/action-tmate@v3
- name: Run the tests on ${{ matrix.distro }}
run: |
docker volume create --driver local --opt type=tmpfs --opt device=tmpfs --opt o=size=100m,uid=1000 tmp-vol
docker run \
-e NPTEST_ACCEPTDEFAULT=1 \
-e NPTEST_CACHE="/src/.github/NPTest.cache" \
-w /src -v ${PWD}:/src \
--tmpfs /media/ramdisk1 \
--mount source=tmp-vol,destination=/src,target=/media/ramdisk2 \
${{ matrix.distro }} \
/bin/sh -c '${{ matrix.prepare }} && \
tools/setup && \
./configure --enable-libtap --with-ipv6=no && \
make && \
make test'
docker volume rm tmp-vol
|