Move lock out of checkStateMachine and instead have it present in fro… #981
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: Codecov for WebRTC C SDK | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
linux-gcc-codecov: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Fetch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: Run code coverage | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCODE_COVERAGE=TRUE -DBUILD_TEST=TRUE | |
make | |
export AWS_KVS_LOG_LEVEL=3 | |
ulimit -c unlimited -S | |
timeout --signal=SIGABRT 60m ./tst/webrtc_client_test | |
for test_file in $(find CMakeFiles/kvsWebrtcClient.dir CMakeFiles/kvsWebrtcSignalingClient.dir -name '*.gcno'); do gcov $test_file; done | |
bash <(curl -s https://codecov.io/bash) |