ShiftScheduler/.github/workflows/ci.yml
copilot-swe-agent[bot] c6ca9b1ba3 Add GitHub Actions CI workflow for automated testing
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
2025-08-23 13:29:13 +00:00

36 lines
No EOL
831 B
YAML

name: CI
on:
push:
branches: [ main, develop, "copilot/*" ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal --collect:"XPlat Code Coverage"
- name: Upload coverage reports
uses: codecov/codecov-action@v4
if: success()
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: '**/coverage.cobertura.xml'
fail_ci_if_error: false