Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed Dec 18, 2024
1 parent a324090 commit 781e586
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 33 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: ASP.NET Benchmarks CI

on:
push:
branches: [ main ]
paths-ignore:
- "**/*.md"

pull_request:
paths-ignore:
- "**/*.md"

workflow_dispatch:

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
name: Build & Test
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
SuppressNETCoreSdkPreviewMessage: true
steps:
- uses: actions/checkout@v4

- name: Install .NET SDK (global.json)
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
dotnet-version: |
8.0.x
- name: Print .NET info
run: dotnet --info

- name: Build
run: dotnet build ./src/BenchmarksApps.sln

- name: Test
run: >
dotnet test ./src/BenchmarksApps.sln
--no-build --logger console --logger trx --logger html --logger GitHubActions
--results-directory ./TestResults --blame
--RunConfiguration.CollectSourceInformation=true
- name: Publish Test Results
uses: actions/upload-artifact@v4
with:
name: TestResults_${{ matrix.os }}
path: ./TestResults
33 changes: 0 additions & 33 deletions .github/workflows/pr.yml

This file was deleted.

0 comments on commit 781e586

Please # to comment.