Update build and add deploy pipeline
Some checks failed
Game Ideas build for PR / build_blazor_app (pull_request) Failing after 12s
Some checks failed
Game Ideas build for PR / build_blazor_app (pull_request) Failing after 12s
This commit is contained in:
@@ -1,25 +1,31 @@
|
||||
name: Game Ideas build for PR
|
||||
on:
|
||||
pull_request:
|
||||
types: [ opened, edited, reopened, synchronize ]
|
||||
branches:
|
||||
- 'feature/**'
|
||||
- main
|
||||
pull_request:
|
||||
types: [ opened, edited, reopened, synchronize ]
|
||||
branches:
|
||||
- 'feature/**'
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build_blazor_app:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
build_blazor_app:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup DotNet
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '9'
|
||||
- name: Setup .NET 9
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '9.0.x'
|
||||
|
||||
- name: Build Blazor App
|
||||
run: dotnet build ./src/GameIdeas/Client/GameIdeas.BlazorApp/GameIdeas.BlazorApp.csproj
|
||||
|
||||
- name: Build API App
|
||||
run: dotnet build ./src/GameIdeas/Server/GameIdeas.WebAPI/GameIdeas.WebAPI.csproj
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Build API
|
||||
run: dotnet build ./src/GameIdeas/Server/GameIdeas.WebAPI/GameIdeas.WebAPI.csproj --configuration Release
|
||||
|
||||
- name: Build Blazor App
|
||||
run: dotnet build ./src/GameIdeas/Client/GameIdeas.BlazorApp/GameIdeas.BlazorApp.csproj --configuration Release
|
||||
|
||||
- name: Test API
|
||||
run: dotnet test ./src/GameIdeas/Server/GameIdeas.WebAPI.Tests/GameIdeas.WebAPI.Tests.csproj --configuration Release
|
||||
Reference in New Issue
Block a user