ci: add dev build pipeline with backend (.NET) and frontend (Angular) jobs
Some checks failed
Dev Build / build-test (push) Failing after 5m9s
Dev Build / notify-success (push) Has been skipped
Dev Build / notify-failure (push) Successful in 46s

This commit is contained in:
2026-04-27 20:31:22 -04:00
parent 27d877db6c
commit 0108d8aca0

72
.gitea/workflows/dev.yml Normal file
View File

@@ -0,0 +1,72 @@
name: Dev Build
on:
pull_request:
branches: [dev]
push:
branches: [dev]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore backend
run: dotnet restore
working-directory: ./backend
- name: Build backend
run: dotnet build --no-restore --configuration Release
working-directory: ./backend
- name: Test backend
run: dotnet test --no-build --configuration Release
working-directory: ./backend
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Install frontend deps
run: npm ci
working-directory: ./frontend
- name: Build frontend
run: npm run build
working-directory: ./frontend
- name: Build API client
run: |
npm ci
npm run build --if-present
working-directory: ./api-client
notify-success:
needs: build-test
if: success() && gitea.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Notify Slack success
run: |
curl -X POST -H 'Content-type: application/json' \
--data "{\"text\":\"✅ Control-Center dev built successfully.\"}" \
"${{ secrets.SLACK_WEBHOOK_URL }}"
notify-failure:
needs: build-test
if: failure()
runs-on: ubuntu-latest
steps:
- name: Notify Slack failure
run: |
curl -X POST -H 'Content-type: application/json' \
--data "{\"text\":\"🚨 Control-Center dev pipeline failed. Check Gitea Actions for details.\"}" \
"${{ secrets.SLACK_WEBHOOK_URL }}"