-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (36 loc) · 948 Bytes
/
pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Tests
on:
push:
paths:
- 'Rudim/**'
- 'Rudim.Test/**'
- 'Rudim.sln'
- '.github/workflows/pipeline.yml'
branches: [ main ]
pull_request:
paths:
- 'Rudim/**'
- 'Rudim.Test/**'
- 'Rudim.sln'
- '.github/workflows/pipeline.yml'
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test --no-build --verbosity normal -c Release
- name: Benchmark
working-directory: Rudim
run: |
dotnet run -c Release --benchmark
echo "$(cat BenchmarkDotNet.Artifacts/results/Rudim.NegamaxBenchmark-report-github.md)" >> $GITHUB_STEP_SUMMARY