implemented tests #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |