40 lines
891 B
YAML
40 lines
891 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: |
|
|
8.0.x
|
|
|
|
- name: Restore BotPages
|
|
run: dotnet restore BotPages
|
|
|
|
- name: Build BotPages
|
|
run: dotnet build BotPages --no-restore -c Release
|
|
|
|
- name: Test BotPages
|
|
run: dotnet test BotPages --no-build -c Release --collect:"XPlat Code Coverage" --logger "trx;LogFileName=test-results.trx"
|
|
|
|
- name: Upload test results
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-results
|
|
path: |
|
|
**/TestResults/*.trx
|
|
**/TestResults/*/coverage.cobertura.xml
|