Skip to content

Commit be6c273

Browse files
committed
test: add github action workflow
1 parent 197159f commit be6c273

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/test.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
name: CPP
13+
env:
14+
CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/"
15+
steps:
16+
- uses: actions/checkout@v3
17+
- run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm
18+
- run: bash ./unit_test.sh
19+
- run: bash ./generate_code_cov.sh
20+
- run: bash ./function_test.sh
21+
- run: bash <(curl -s https://codecov.io/bash)

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ test/httpserver/nohup.out
1414
.idea
1515
build/
1616
cmake-build-debug/
17+
.DS_Store

0 commit comments

Comments
 (0)