From 9758cba02545cd947f79cb03172028fb6aae54c5 Mon Sep 17 00:00:00 2001 From: Meiko Remiorz Date: Thu, 22 May 2025 17:47:46 +0200 Subject: [PATCH] =?UTF-8?q?zwei=20manuelle=20workflows=20hinzugef=C3=BCgt?= =?UTF-8?q?=20f=C3=BCr=20frontend=20und=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/backend-build.yml | 27 +++++++++++++++++++++++++++ .gitea/workflows/frontend-build.yml | 26 ++++++++++++++++++++++++++ .gitea/workflows/pipeline.yml | 2 +- 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/backend-build.yml create mode 100644 .gitea/workflows/frontend-build.yml diff --git a/.gitea/workflows/backend-build.yml b/.gitea/workflows/backend-build.yml new file mode 100644 index 0000000..355198a --- /dev/null +++ b/.gitea/workflows/backend-build.yml @@ -0,0 +1,27 @@ +name: Build Backend +run-name: ${{ gitea.actor }} is testing out building the Backend + +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: '9.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 diff --git a/.gitea/workflows/frontend-build.yml b/.gitea/workflows/frontend-build.yml new file mode 100644 index 0000000..d8b78ca --- /dev/null +++ b/.gitea/workflows/frontend-build.yml @@ -0,0 +1,26 @@ +name: Build Frontend +run-name: ${{ gitea.actor }} is testing out building the Frontend + +on: + workflow_dispatch: + +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: '22' + + - name: Install dependencies + run: npm install + working-directory: ./usentrycoach.client + + - name: Build frontend + run: npm run build + working-directory: ./usentrycoach.client \ No newline at end of file diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 6476874..e1fad45 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -37,7 +37,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' - name: Install dependencies run: npm install