Skip to content

Merge pr 2

Merge pr 2 #5

Workflow file for this run

name: Build and Test on PR to master/develop
on:
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.*
- name: Checkout code
uses: actions/checkout@v4
#- name: Prepare SNK
# env:
# NUGET_SIGNING_KEY: ${{ secrets.NUGET_SIGNING_KEY }}
# run: echo "$NUGET_SIGNING_KEY" | base64 -d > RateLimiter/key.snk && sha256sum RateLimiter/key.snk && echo "$NUGET_SIGNING_KEY" |wc
- name: Build
run: dotnet build RateLimiter --configuration ReleaseUnsigned
- name: Test
run: dotnet test RateLimiterTests
#- name: Publish NuGet Package
# run: dotnet pack RateLimiter --configuration Release --output ./artifacts
# - name: Push NuGet package
# run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json