Skip to content

Benchmark read and serialization #213

Benchmark read and serialization

Benchmark read and serialization #213

Workflow file for this run

name: pipeline
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['7.0']
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore ./Typely.sln
- name: Build
run: dotnet build --configuration Release ./Typely.sln
- name: Test
run: dotnet test --no-restore ./Typely.sln /p:CollectCoverage=true /p:CoverletOutput="../Coverage/" /p:MergeWith="../Coverage/coverage.json" /p:CoverletOutputFormat=\"cobertura,json\" /maxcpucount:1
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- name: Create nuget packages
run: |
dotnet pack --configuration Release ./src/Typely.Core/Typely.Core.csproj
dotnet pack --configuration Release ./src/Typely.Generators/Typely.Generators.csproj
dotnet pack --configuration Release ./src/Typely.EfCore/Typely.EfCore.csproj
dotnet pack --configuration Release ./src/Typely.AspNetCore/Typely.AspNetCore.csproj
dotnet pack --configuration Release ./src/Typely.AspNetCore.Swashbuckle/Typely.AspNetCore.Swashbuckle.csproj
- name: Publish packages
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate