Skip to content

Fix CICD

Fix CICD #7

Workflow file for this run

name: Build
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore workloads
run: dotnet workload restore --project src/Bible.Alarm.sln
- name: Restore dependencies
run: dotnet restore src/Bible.Alarm.sln
- name: Build solution
run: dotnet build src/Bible.Alarm.sln --configuration Release --no-restore
- name: Run tests
run: dotnet test src/Bible.Alarm.sln --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=test-results.trx" --collect:"XPlat Code Coverage"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: |
**/test-results.trx
**/coverage.cobertura.xml
retention-days: 30