-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (31 loc) · 944 Bytes
/
dotnet-rest-ci.yml
File metadata and controls
32 lines (31 loc) · 944 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: .NET REST Tests
on:
push:
branches: [ "main" ]
paths:
- 'client-samples/dotnet/rest/**'
- '.github/workflows/dotnet-rest-ci.yml'
pull_request:
branches: [ "main" ]
paths:
- 'client-samples/dotnet/rest/**'
- '.github/workflows/dotnet-rest-ci.yml'
jobs:
dotnet-rest-ci:
runs-on: windows-latest
defaults:
run:
working-directory: ./client-samples/dotnet/rest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore api-template && dotnet restore api-template.tests
- name: Build
run: dotnet build api-template --no-restore --configuration Release
- name: Test
run: dotnet test api-template.tests