-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Expand file tree
/
Copy pathsamples-aspnet-fastenpoints-server.yaml
More file actions
53 lines (51 loc) · 2.06 KB
/
Copy pathsamples-aspnet-fastenpoints-server.yaml
File metadata and controls
53 lines (51 loc) · 2.06 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
name: Samples C# .Net 8 FastEndpoints Server
on:
push:
# Determines whether this workflow fires at all. Keep in sync with all_samples: in the setup job below.
paths:
- samples/server/petstore/aspnet/fastendpoints/**
- samples/server/petstore/aspnet/fastendpoints-*/**
pull_request:
# Determines whether this workflow fires at all. Keep in sync with all_samples: in the setup job below.
paths:
- samples/server/petstore/aspnet/fastendpoints/**
- samples/server/petstore/aspnet/fastendpoints-*/**
jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.filter.outputs.matrix }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- id: filter
uses: ./.github/actions/compute-matrix
with:
# List of sample directories to consider building (one per line).
# Action inputs don't support arrays, so this is a newline-delimited string parsed in the action script.
# To add a new sample: add it here AND add a matching entry to the paths: trigger above.
all_samples: |
samples/server/petstore/aspnet/fastendpoints
samples/server/petstore/aspnet/fastendpoints-useApiVersioning
samples/server/petstore/aspnet/fastendpoints-useAuthentication
samples/server/petstore/aspnet/fastendpoints-useProblemDetails
samples/server/petstore/aspnet/fastendpoints-useRecords
samples/server/petstore/aspnet/fastendpoints-useResponseCaching
samples/server/petstore/aspnet/fastendpoints-useValidators
build:
name: Build .Net 8 FastEndpoints servers
needs: setup
if: ${{ needs.setup.outputs.matrix != '[]' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-dotnet@v5.3.0
with:
dotnet-version: '8.0.x'
- name: Build
working-directory: ${{ matrix.sample }}
run: dotnet build Org.OpenAPITools.sln