Add logging for HTTP failures #220
Workflow file for this run
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: CPP CI | |
on: | |
pull_request: | |
concurrency: | |
# Cancel any CI/CD workflow currently in progress for the same PR. | |
# Allow running concurrently with any other commits. | |
group: build-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
build_windows: | |
permissions: | |
actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs | |
contents: read # for actions/checkout to fetch code | |
strategy: | |
matrix: | |
configurations: [Debug, Release] | |
runs-on: windows-latest | |
env: | |
# Configuration type to build. For documentation on how build matrices work, see | |
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
BUILD_CONFIGURATION: ${{matrix.configurations}} | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 | |
with: | |
cancel_others: 'false' | |
paths_ignore: '["**.md"]' | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
if: steps.skip_check.outputs.should_skip != 'true' | |
with: | |
submodules: 'recursive' | |
- name: Build | |
if: steps.skip_check.outputs.should_skip != 'true' | |
run: | | |
dotnet build OrcanodeMonitor.sln /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform="Any CPU" | |
- name: Test | |
if: steps.skip_check.outputs.should_skip != 'true' | |
run: | | |
dotnet test --no-build --verbosity normal --configuration ${{env.BUILD_CONFIGURATION}} --property:Platform="Any CPU" |