-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (31 loc) · 951 Bytes
/
pr-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
33
name: Run unit tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install -y build-essential libglib2.0-dev libxml2-dev libcunit1-dev libjansson-dev liblua5.3-dev
- name: Clone apteryx
uses: actions/checkout@v2
with:
repository: alliedtelesis/apteryx
path: apteryx
- name: Build Apteryx
run: make -C ./apteryx
- name: Clone apteryx-xml
uses: actions/checkout@v2
with:
repository: alliedtelesis/apteryx-xml
path: apteryx-xml
- name: Build apteryx-xml
run: APTERYX_PATH=../apteryx make -C ./apteryx-xml
- name: Build
run: APTERYX_PATH=./apteryx APTERYX_XML_PATH=./apteryx-xml make
- name: Run tests
run: APTERYX_PATH=./apteryx APTERYX_XML_PATH=./apteryx-xml make test