-
Notifications
You must be signed in to change notification settings - Fork 54
43 lines (34 loc) · 951 Bytes
/
test.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
34
35
36
37
38
39
40
41
42
43
name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: MacOS Install Deps
if: matrix.os == 'macos-latest'
run: brew install automake autoconf libtool unbound
- name: Ubuntu Install Deps
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libunbound-dev
- name: Build
run: ./autogen.sh && ./configure --with-network=regtest && make
- name: Unit Tests
run: ./test_hnsd
- name: Setup Integration
uses: actions/setup-node@v4
with:
node-version: lts/*
check-latest: true
- name: Integration Tests
working-directory: ./integration
run: |
npm install
npm run test