File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Backend and Frontend
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ project :
15
+ - SampleApp/BackEnd/BackEnd.csproj
16
+ - SampleApp/FrontEnd/FrontEnd.csproj
17
+
18
+ steps :
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v2
21
+
22
+ - name : Setup .NET
23
+ uses : actions/setup-dotnet@v2
24
+ with :
25
+ dotnet-version : ' 9.0.x'
26
+
27
+ - name : Restore dependencies
28
+ run : dotnet restore ${{ matrix.project }}
29
+
30
+ - name : Build project
31
+ run : dotnet build ${{ matrix.project }} --no-restore --configuration Release
Original file line number Diff line number Diff line change 7
7
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
8
8
builder . Services . AddOpenApi ( options =>
9
9
{
10
+ // current workaround for port forwarding in codespaces
11
+ // https://github.com/dotnet/aspnetcore/issues/57332
10
12
options . AddDocumentTransformer ( ( document , context , ct ) =>
11
13
{
12
14
document . Servers = [ ] ;
You can’t perform that action at this time.
0 commit comments