This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -49,7 +49,6 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: nuget-packages
|
name: nuget-packages
|
||||||
path: artifacts/*.nupkg
|
|
||||||
|
|
||||||
- name: Publish to NuGet
|
- name: Publish to NuGet
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user