first try von einer backend - frontend pipeline
This commit is contained in:
50
.gitea/workflows/pipeline.yml
Normal file
50
.gitea/workflows/pipeline.yml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
name: Build Backend and Frontend
|
||||||
|
run-name: ${{ gitea.actor }} is testing out Building Website
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
backend:
|
||||||
|
name: Build & Test .NET Backend
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
name: Clone the repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
name: Setup .NET SDK
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
|
name: Restore dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
name: Build the project
|
||||||
|
run: dotnet build USEntryCoach.sln --no-restore --configuration Release
|
||||||
|
|
||||||
|
name: Run tests
|
||||||
|
run: dotnet test USEntryCoach.sln --no-build --verbosity normal
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
name: Build Frontend
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: backend
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
name: Clone the repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
|
name: Install dependencies
|
||||||
|
working-directory: ./usentrycoach.client
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
name: Build frontend
|
||||||
|
working-directory: ./usentrycoach.client
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
Reference in New Issue
Block a user