test: Add support for TLS v1.3 version check #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: coverage | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
codecoverage: | |
runs-on: windows-2022 | |
name: Generate and upload code coverage | |
if: github.repository_owner == 'laudrup' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Boost | |
uses: MarkusJx/[email protected] | |
id: install-boost | |
with: | |
boost_version: 1.83.0 | |
toolset: msvc | |
platform_version: 2022 | |
- name: Install packages | |
run: choco install opencppcoverage | |
- name: Configure | |
env: | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
shell: bash | |
run: cmake -B build -T v143 -DENABLE_DOCUMENTATION=OFF | |
- name: Build | |
run: cmake --build build/ --target unittest | |
- name: Generate code coverage | |
shell: bash | |
run: exec "${PROGRAMFILES}"/opencppcoverage/opencppcoverage --cover_children --sources="${GITHUB_WORKSPACE}"\\include --modules=unittest.exe --export_type=cobertura:cobertura.xml -- ctest | |
working-directory: build/ | |
env: | |
CTEST_OUTPUT_ON_FAILURE: True | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: build/cobertura.xml | |
fail_ci_if_error: true |