build(deps): bump RichardSzalay.MockHttp from 6.0.0 to 7.0.0 #332
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: Build & Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] # windows-latest, macos-latest | |
dotnet: ['2.0.x', '2.1.x', '2.2.x', '3.0.x', '3.1.x', '5.0.x', '6.0.x', '7.0.x'] | |
name: Dotnet ${{ matrix.dotnet }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
if: "! contains(toJSON(github.event.head_commit.message), 'skip test')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
- name: Build | |
run: dotnet build | |
- name: Test | |
if: ${{ matrix.os != 'ubuntu-latest' || matrix.dotnet != '7.0.x' }} | |
run: dotnet test | |
- name: Test & Coverage Collection | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.dotnet == '7.0.x' }} | |
run: dotnet test APIMatic.Core.Test/APIMatic.Core.Test.csproj -p:CollectCoverage=true -p:CoverletOutputFormat=lcov | |
- name: Upload coverage report | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.dotnet == '7.0.x' && github.actor != 'dependabot[bot]' }} | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_KEY }} | |
with: | |
coverageLocations: | | |
${{github.workspace}}/APIMatic.Core.Test/coverage.info:lcov |