Skip to content
Merged
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
39 changes: 38 additions & 1 deletion .github/workflows/gate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build

on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
Expand Down Expand Up @@ -119,9 +120,45 @@ jobs:
reporter: dotnet-trx
only-summary: 'true'

linux:

runs-on: ubuntu-latest

permissions:
checks: write

steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal -f net6.0 /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.net6.0.info
flag-name: linux
parallel: true
- name: Generate unit test report
uses: phoenix-actions/test-reporting@v12
id: unit-test-report-linux
if: success() || failure()
with:
name: test results (linux net6.0)
path: BitFaster.Caching.UnitTests/TestResults/results.trx
reporter: dotnet-trx
only-summary: 'true'

coverage:

needs: [win, mac]
needs: [win, mac, linux]

runs-on: ubuntu-latest

Expand Down