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
47 changes: 45 additions & 2 deletions .github/workflows/gate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI (win)
name: Build

on:
push:
Expand All @@ -9,7 +9,7 @@ on:
branches: [ main ]

jobs:
build:
win:

runs-on: windows-latest

Expand Down Expand Up @@ -46,3 +46,46 @@ jobs:
path: BitFaster.Caching.UnitTests/TestResults/results.trx
reporter: dotnet-trx
only-summary: 'true'

mac:

runs-on: macos-latest

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 /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'

finish:
needs: [win, mac]
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
43 changes: 0 additions & 43 deletions .github/workflows/mac-gate.yml

This file was deleted.