-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (24 loc) · 939 Bytes
/
Copy pathci.yml
File metadata and controls
32 lines (24 loc) · 939 Bytes
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore library
run: dotnet restore Codout.Apis.Asaas/Codout.Apis.Asaas.csproj
- name: Restore tests
run: dotnet restore Codout.Apis.Asaas.Tests/Codout.Apis.Asaas.Tests.csproj
- name: Build library
run: dotnet build Codout.Apis.Asaas/Codout.Apis.Asaas.csproj --configuration Release --no-restore
- name: Test (unit + contract — integration are auto-skipped without ASAAS_SANDBOX_TOKEN)
run: dotnet test Codout.Apis.Asaas.Tests/Codout.Apis.Asaas.Tests.csproj --configuration Release --logger "console;verbosity=normal" --filter "Category!=Integration"