Skip to content

Added Testing package (#296) #381

Added Testing package (#296)

Added Testing package (#296) #381

Workflow file for this run

name: Publish Preview NuGet
on:
push:
branches:
- dev
jobs:
nuget:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Run tests
run: dotnet test --framework net8.0
-
name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
test-results/**/*.xml
test-results/**/*.trx
-
name: Create and push NuGet package
run: |
dotnet pack -c Debug -o nuget
dotnet nuget push nuget/**/*.nupkg --skip-duplicate --api-key ${{ secrets.MYGET_API_KEY }} --source https://www.myget.org/F/${{ vars.MYGET_FEED_NAME || 'eventuous' }}/api/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ github.token }}