-
Notifications
You must be signed in to change notification settings - Fork 16
38 lines (28 loc) · 1000 Bytes
/
dotnet-ci.yaml
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
name: .NET Build & Test
on:
pull_request:
types: [synchronize, opened, reopened, labeled, unlabeled]
branches: [main]
env:
DOTNET_VERSION: '8.0.x'
jobs:
build:
strategy:
matrix:
service: [OrchestrationAPI, CoreAPI, CoreWorker, GatekeeperAPI, SemanticKernelAPI]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 📦
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies 📂
working-directory: ./src
run: dotnet restore ./dotnet/${{ matrix.service }}/${{ matrix.service }}.csproj
- name: Build 🧱
working-directory: ./src
run: dotnet build ./dotnet/${{ matrix.service }}/${{ matrix.service }}.csproj --configuration Release --no-restore
- name: Test 🧪
working-directory: ./src
run: dotnet test ./dotnet/${{ matrix.service }}/${{ matrix.service }}.csproj --configuration Release --no-build