-
Notifications
You must be signed in to change notification settings - Fork 112
46 lines (41 loc) · 1.09 KB
/
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
44
45
46
name: Run tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update && sudo apt install -y build-essential uuid-dev libssl-dev libsecp256k1-dev
- name: Build
run: |
make -C src
- name: Build tests
run: |
make -C test
- name: Run Tests
run: |
make run-tests
cmake-test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update && sudo apt install -y build-essential cmake pkg-config uuid-dev libssl-dev
- name: Configure
run: |
mkdir build && cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- name: Build
run: |
cmake --build build -j $(nproc)
- name: Run Tests
run: |
cd build && ctest --output-on-failure