Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/gate.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Build and Test (windows-latest)
name: CI (win)

on:
push:
paths-ignore: [ '**.md' ]
branches: [ main ]
pull_request:
paths-ignore: [ '**.md' ]
branches: [ main ]

jobs:
Expand All @@ -22,7 +24,7 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
- name: Publish NuGet artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -32,4 +34,15 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: BitFaster.Caching.UnitTests/TestResults/coverage.info
path-to-lcov: BitFaster.Caching.UnitTests/TestResults/coverage.info
flag-name: win
parallel: true
- name: Generate unit test report
uses: phoenix-actions/test-reporting@v8
id: unit-test-report-win
if: success() || failure()
with:
name: test results (win)
path: BitFaster.Caching.UnitTests/TestResults/results.trx
reporter: dotnet-trx
only-summary: 'true'
22 changes: 20 additions & 2 deletions .github/workflows/mac-gate.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Build and Test (macos-latest)
name: CI (mac)

on:
push:
paths-ignore: [ '**.md' ]
branches: [ main ]
pull_request:
paths-ignore: [ '**.md' ]
branches: [ main ]

jobs:
Expand All @@ -22,4 +24,20 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
- name: Publish coverage report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: BitFaster.Caching.UnitTests/TestResults/coverage.info
flag-name: mac
parallel: true
- name: Generate unit test report
uses: phoenix-actions/test-reporting@v8
id: unit-test-report-mac
if: success() || failure()
with:
name: test results (mac)
path: BitFaster.Caching.UnitTests/TestResults/results.trx
reporter: dotnet-trx
only-summary: 'true'