Skip to content

add GHA CI

add GHA CI #1

Workflow file for this run

name: CI
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
jobs:
test:
name: Test Suite
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup
run: |
git fetch --unshallow # GHA only does a shallow clone
sudo add-apt-repository universe
sudo apt-get -qq update
sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -qq --assume-no install bison build-essential flex gawk gettext git git-core libncurses5-dev libssl-dev lxc m4 subversion unzip zlib1g-dev python3-lxc python3-nose linux-libc-dev cmake libnl-3-dev libnl-genl-3-dev libasyncns-dev linux-modules-extra-$(uname -r)
sudo modprobe l2tp_netlink
sudo modprobe l2tp_eth
# Newer versions of the broker don't need the following but keep it around for cross-version testing
sudo modprobe nf_conntrack
sudo modprobe nf_conntrack_netlink
sudo iptables -t nat -L >/dev/null
sudo iptables -t filter -P FORWARD ACCEPT
- name: Run tests
run: |
export TRAVIS_COMMIT=$(git rev-parse HEAD)
export SELECT=nose OLD_REV=HEAD OLD_UBUNTU=bionic
sudo -E ./tests/travis.sh