-
Notifications
You must be signed in to change notification settings - Fork 2
22 lines (20 loc) · 841 Bytes
/
test.yml
File metadata and controls
22 lines (20 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Build and test
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Configure secrets
run: |
dotnet user-secrets init --project Test/Test.Postmates.NET/Test.Postmates.NET.csproj \
&& dotnet user-secrets set "Postmates.ServiceApiKey" ${{ secrets.SANDBOX_KEY }} --project Test/Test.Postmates.NET/Test.Postmates.NET.csproj \
&& dotnet user-secrets set "Postmates.CustomerId" ${{ secrets.CUSTOMER_ID }} --project Test/Test.Postmates.NET/Test.Postmates.NET.csproj
- name: run tests
run: dotnet test Test/Test.Postmates.NET/Test.Postmates.NET.csproj