-
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.64 KB
/
ci-core.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: DomainVerifier CI
on:
push:
branches: [ "main" ]
paths:
- 'DomainVerier.sln'
- 'src/DomainVerifier/**'
- 'tests/DomainVerifier.Tests/**'
- '**/ci-core.yml'
pull_request:
branches: [ "main" ]
paths:
- 'DomainVerier.sln'
- 'src/DomainVerifier/**'
- 'tests/DomainVerifier.Tests/**'
- '**/ci-core.yml'
workflow_dispatch:
jobs:
compile:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./src/DomainVerifier
- name: Restore NuGet packages
run: dotnet build -c Release --no-restore
working-directory: ./src/DomainVerifier
test-containers:
name: Container Tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
dotnet: [ '8.0.x', '7.0.x', '6.0.x' ]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Run tests
run: dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResult /p:CoverletOutputFormat=lcov
working-directory: ./tests/DomainVerifier.Tests