Skip to content

Bump Microsoft.OpenApi.Readers and Microsoft.OpenApi in /src #329

Bump Microsoft.OpenApi.Readers and Microsoft.OpenApi in /src

Bump Microsoft.OpenApi.Readers and Microsoft.OpenApi in /src #329

Workflow file for this run

name: Run tests with coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
validate_commit:
name: Validate commit
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
services:
mssql_server:
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- 1433:1433
env:
ACCEPT_EULA: True
MSSQL_SA_PASSWORD: tMIxN11yGZgMC
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
working-directory: test/
run: |
dotnet add package coverlet.msbuild &&
dotnet test Arcane.Framework.Tests.csproj --configuration Debug --runtime linux-x64 /p:CollectCoverage=true /p:CoverletOutput=Coverage/ /p:CoverletOutputFormat=lcov --logger GitHubActions
- name: Publish Code Coverage
if: ${{ github.event_name == 'pull_request' && always() }}
uses: romeovs/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lcov-file: ./test/Coverage/coverage.info