Update build and add deploy pipeline (#25)
Some checks failed
Game Ideas deploy / build-test-deploy (push) Failing after 1m25s

Reviewed-on: #25
This commit was merged in pull request #25.
This commit is contained in:
2025-04-27 23:31:29 +02:00
parent a2e93c9438
commit 31f124d205
2 changed files with 116 additions and 19 deletions

View File

@@ -1,25 +1,30 @@
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:
- 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 ./src/GameIdeas/GameIdeas.sln
- 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