Repository navigation
56 lines (44 loc) · 1.68 KB
/
Copy pathvector-search-dotnet-ci.yml
File metadata and controls
56 lines (44 loc) · 1.68 KB
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
name: "Vector Search .NET — Build"
on:
pull_request:
branches: [master]
paths:
- ".github/workflows/vector-search-dotnet-ci.yml"
- "samples/features/vector-search/data/**"
- "samples/features/vector-search/vector-search-query-dotnet/**"
push:
branches: [master]
paths:
- ".github/workflows/vector-search-dotnet-ci.yml"
- "samples/features/vector-search/data/**"
- "samples/features/vector-search/vector-search-query-dotnet/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: samples/features/vector-search/vector-search-query-dotnet
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup .NET
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore Tests/vector-search-query-dotnet.Tests.csproj
- name: Format
run: dotnet format Tests/vector-search-query-dotnet.Tests.csproj --verify-no-changes --no-restore
- name: Build
run: dotnet build Tests/vector-search-query-dotnet.Tests.csproj --configuration Release --no-restore
- name: Test
run: dotnet test Tests/vector-search-query-dotnet.Tests.csproj --configuration Release --no-build --nologo
- name: Self-check
run: dotnet run --project vector-search-query-dotnet.csproj --configuration Release --no-build -- --self-check