Skip to content

Commit 781e586

Browse files
committed
Update build script
1 parent a324090 commit 781e586

File tree

2 files changed

+53
-33
lines changed

2 files changed

+53
-33
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: ASP.NET Benchmarks CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths-ignore:
7+
- "**/*.md"
8+
9+
pull_request:
10+
paths-ignore:
11+
- "**/*.md"
12+
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
runs-on: ${{ matrix.os }}
21+
name: Build & Test
22+
env:
23+
DOTNET_CLI_TELEMETRY_OPTOUT: true
24+
DOTNET_NOLOGO: true
25+
SuppressNETCoreSdkPreviewMessage: true
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Install .NET SDK (global.json)
30+
uses: actions/setup-dotnet@v4
31+
with:
32+
global-json-file: global.json
33+
dotnet-version: |
34+
8.0.x
35+
36+
- name: Print .NET info
37+
run: dotnet --info
38+
39+
- name: Build
40+
run: dotnet build ./src/BenchmarksApps.sln
41+
42+
- name: Test
43+
run: >
44+
dotnet test ./src/BenchmarksApps.sln
45+
--no-build --logger console --logger trx --logger html --logger GitHubActions
46+
--results-directory ./TestResults --blame
47+
--RunConfiguration.CollectSourceInformation=true
48+
49+
- name: Publish Test Results
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: TestResults_${{ matrix.os }}
53+
path: ./TestResults

.github/workflows/pr.yml

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

0 commit comments

Comments
 (0)