Skip to content

Debug/queues not existing at startup (#55) #58

Debug/queues not existing at startup (#55)

Debug/queues not existing at startup (#55) #58

Workflow file for this run

name: CI — Backend
# Triggers on pushes and PRs that touch the backend directory.
# Builds, tests (with coverage), and uploads a deployment artifact.
#
# Artifact produced: api-drop — consumed by cd-backend.yml
on:
push:
branches: [main]
paths: ['backend/**']
pull_request:
branches: [main]
paths: ['backend/**']
env:
DOTNET_VERSION: '10.x'
BUILD_CONFIG: Release
SOLUTION: backend/SkillMatrixLlm.sln
PROJECT: backend/src/SkillMatrixLlm.Api/SkillMatrixLlm.Api.csproj
jobs:
build-test-publish:
name: Build, Test & Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore
run: dotnet restore ${{ env.SOLUTION }}
- name: Build
run: dotnet build ${{ env.SOLUTION }} --configuration ${{ env.BUILD_CONFIG }} --no-restore
- name: Test with coverage
run: |
dotnet test ${{ env.SOLUTION }} \
--configuration ${{ env.BUILD_CONFIG }} \
--no-build \
--collect:"XPlat Code Coverage" \
--results-directory coverage
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/**/coverage.cobertura.xml
if-no-files-found: warn
- name: Publish
run: |
dotnet publish ${{ env.PROJECT }} \
--configuration ${{ env.BUILD_CONFIG }} \
--no-build \
--output publish/api
- name: Upload api-drop
uses: actions/upload-artifact@v4
with:
name: api-drop
path: publish/api