Skip to content

implemented tests

implemented tests #3

Workflow file for this run

name: "API test"
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-all:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- name: setup-env
run: sudo apt install cmake sqlite3 gcc curl jq
- name: build
run: cmake -B build && cmake --build build
env:
CXX: g++-13
- name: run-test
run: ./build/src/api_test --addrport $(cat ./files/testdata/default.json | jq -r .addr) & bash ./tests/api-test.sh