Skip to content

Commit f69a4aa

Browse files
Attempting to fix GitHub Action build process
1 parent 7acf962 commit f69a4aa

File tree

1 file changed

+14
-32
lines changed

1 file changed

+14
-32
lines changed

.github/workflows/dotnet.yml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,31 @@ name: .NET
33
on:
44
push:
55
branches:
6-
- main
7-
- release
6+
- 'main'
7+
- 'release'
88
pull_request:
99
branches:
1010
- '**'
1111

1212
env:
1313
USE_FULL_NUMERIC_PROVIDER: "true"
1414
MSBUILDDISABLENODEREUSE: "1"
15-
# Force single MSBuild worker to reduce crash risk
1615
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
1716

1817
jobs:
1918
build:
19+
2020
runs-on: ubuntu-latest
2121

2222
steps:
23-
- uses: actions/checkout@v4
24-
25-
- name: Setup .NET
26-
uses: actions/setup-dotnet@v4
27-
with:
28-
global-json-file: global.json
29-
30-
- name: Restore dependencies
31-
run: |
32-
dotnet restore --configuration Release
33-
34-
- name: Build
35-
run: |
36-
dotnet build --configuration Release --no-restore \
37-
-maxcpucount:1 /nodeReuse:false
38-
39-
- name: Test
40-
run: |
41-
dotnet test --configuration Release --no-build \
42-
--verbosity minimal \
43-
--results-directory ./TestResults \
44-
--logger "trx;LogFileName=test_results.trx"
45-
46-
- name: Upload test results
47-
uses: actions/upload-artifact@v4
48-
if: always()
49-
with:
50-
name: test-results
51-
path: ./TestResults
23+
- uses: actions/checkout@v4
24+
- name: Setup .NET
25+
uses: actions/setup-dotnet@v4
26+
with:
27+
global-json-file: global.json
28+
- name: Restore dependencies
29+
run: dotnet restore
30+
- name: Build
31+
run: dotnet build --no-restore
32+
- name: Test
33+
run: dotnet test --no-build --verbosity quiet

0 commit comments

Comments
 (0)