Skip to content

Improves PropertyAccessFactory.CreateRead method #22

Improves PropertyAccessFactory.CreateRead method

Improves PropertyAccessFactory.CreateRead method #22

Workflow file for this run

name: Publish NuGet packages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container: mcr.microsoft.com/dotnet/sdk:8.0
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Restore NuGet packages
run: dotnet restore
- name: Build and pack NuGet packages
run: |
dotnet build --configuration Release
dotnet pack --configuration Release --include-symbols --include-source --output ./nupkgs
- name: Run tests
env:
T_POSTGRES_HOST: postgres
T_POSTGRES_USER: postgres
T_POSTGRES_PASS: postgres
run: dotnet test -f net8.0
- name: Publish NuGet packages
run: |
dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate