-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (26 loc) · 996 Bytes
/
test-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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