added coveralls to gh-actions

This commit is contained in:
The-EDev 2023-06-13 06:56:48 +03:00
parent fc14a3298e
commit 3becb7cd84
No known key found for this signature in database
GPG Key ID: 51C45DC0C413DCD9

View File

@ -10,6 +10,7 @@ on:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
COVERALLS_PULL_REQUEST: ${{ github.event.number }}
jobs:
build:
@ -64,6 +65,18 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --output-on-failure -C ${{env.BUILD_TYPE}}
- name: coveralls
if: matrix.os == 'ubuntu-latest'
run: |
export TRAVIS_BRANCH=$GITHUB_REF_NAME && \
export TRAVIS_JOB_ID=$GITHUB_RUN_NUMBER && \
git clone https://github.com/CrowCpp/cpp-coveralls.git && \
cd cpp-coveralls && \
pip3 install . --no-input && \
cd .. && \
coveralls --verbose --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp
shell: bash
#- name: Package
# working-directory: ${{github.workspace}}/build
# run: |