diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..09800c3e5 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,21 @@ +name: Test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + name: CPP + env: + CPLUS_INCLUDE_PATH: "/usr/local/include/:/usr/include/jsoncpp/:/usr/local/opt/openssl/include/:/usr/lib/" + steps: + - uses: actions/checkout@v3 + - run: sudo apt-get install lcov libcurl4-openssl-dev libssl-dev uuid-dev libjson-c-dev libjsoncpp-dev nodejs npm + - run: bash ./unit_test.sh + - run: bash ./generate_code_cov.sh + - run: bash ./function_test.sh + - run: bash <(curl -s https://codecov.io/bash) diff --git a/.gitignore b/.gitignore index 9c53eb7fc..6c10daaab 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ test/httpserver/nohup.out .idea build/ cmake-build-debug/ +.DS_Store \ No newline at end of file