-
-
Notifications
You must be signed in to change notification settings - Fork 85
30 lines (26 loc) · 1.05 KB
/
dotnetcore.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
name: Run automated tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build unit test project
run: dotnet build tests/Mollie.Tests.Unit --configuration Release --no-restore
- name: Run unit tests
run: dotnet test tests/Mollie.Tests.Unit --no-restore --verbosity normal
- name: Build integration test project
run: dotnet build tests/Mollie.Tests.Integration --configuration Release --no-restore
- name: Run integration tests
run: dotnet test tests/Mollie.Tests.Integration --filter "TestCategory!=AccessKeyIntegrationTest" --no-restore --verbosity normal
env:
Mollie__ApiKey: ${{ secrets.Mollie__ApiKey }}
Mollie__AccessKey: ${{ secrets.Mollie__AccessKey }}
Mollie__ClientId: ${{ secrets.Mollie__ClientId }}
Mollie__ClientSecret: ${{ secrets.Mollie__ClientSecret }}