Skip to content

Commit 3ee415e

Browse files
authored
unified build (#285)
* unify * rename * ws
1 parent 147e9b5 commit 3ee415e

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

.github/workflows/gate.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI (win)
1+
name: Build
22

33
on:
44
push:
@@ -9,7 +9,7 @@ on:
99
branches: [ main ]
1010

1111
jobs:
12-
build:
12+
win:
1313

1414
runs-on: windows-latest
1515

@@ -46,3 +46,46 @@ jobs:
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

.github/workflows/mac-gate.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)