File tree Expand file tree Collapse file tree 2 files changed +45
-45
lines changed Expand file tree Collapse file tree 2 files changed +45
-45
lines changed Original file line number Diff line number Diff line change 1- name : CI (win)
1+ name : Build
22
33on :
44 push :
99 branches : [ main ]
1010
1111jobs :
12- build :
12+ win :
1313
1414 runs-on : windows-latest
1515
4646 path : BitFaster.Caching.UnitTests/TestResults/results.trx
4747 reporter : dotnet-trx
4848 only-summary : ' true'
49+
50+ mac :
51+
52+ runs-on : macos-latest
53+
54+ steps :
55+ - uses : actions/checkout@v3
56+ - name : Setup .NET Core
57+ uses : actions/setup-dotnet@v2
58+ with :
59+ dotnet-version : 6.0.x
60+ - name : Install dependencies
61+ run : dotnet restore
62+ - name : Build
63+ run : dotnet build --configuration Release --no-restore
64+ - name : Test
65+ run : dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov --logger "trx;LogFileName=results.trx"
66+ - name : Publish coverage report to coveralls.io
67+ uses : coverallsapp/github-action@master
68+ with :
69+ github-token : ${{ secrets.GITHUB_TOKEN }}
70+ path-to-lcov : BitFaster.Caching.UnitTests/TestResults/coverage.info
71+ flag-name : mac
72+ parallel : true
73+ - name : Generate unit test report
74+ uses : phoenix-actions/test-reporting@v8
75+ id : unit-test-report-mac
76+ if : success() || failure()
77+ with :
78+ name : test results (mac)
79+ path : BitFaster.Caching.UnitTests/TestResults/results.trx
80+ reporter : dotnet-trx
81+ only-summary : ' true'
82+
83+ finish :
84+ needs : [win, mac]
85+ runs-on : ubuntu-latest
86+ steps :
87+ - name : Coveralls Finished
88+ uses : coverallsapp/github-action@master
89+ with :
90+ github-token : ${{ secrets.github_token }}
91+ parallel-finished : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments