Skip to content

Commit 4321749

Browse files
committed
dotnet can build run builds for multiple frameworks
1 parent d80cbf9 commit 4321749

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
name: build-and-test
22
on:
33
push:
4-
branches: [ main ]
4+
branches: [main]
55
pull_request:
6-
branches: [ main ]
6+
branches: [main]
77
env:
88
JsonDiffPatchSolutionPath: src/SystemTextJson.JsonDiffPatch.sln
99
jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
build-configuration: [ Debug, Release ]
14-
test-target-framework: [ net8.0, net7.0, net6.0 ]
13+
build-configuration: [Debug, Release]
14+
test-target-framework: [net8.0, net7.0, net6.0]
1515
name: Build And Test (${{ matrix.test-target-framework }}, ${{ matrix.build-configuration }})
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v5
1919
- name: Setup DotNet
2020
uses: actions/setup-dotnet@v5
2121
with:
22-
dotnet-version: |
23-
8.x
24-
7.x
25-
6.x
22+
global-json-file: global.json
2623
- name: Restore
2724
run: dotnet restore ${{ env.JsonDiffPatchSolutionPath }}
2825
- name: Build
2926
run: dotnet build -c ${{ matrix.build-configuration }} --no-restore ${{ env.JsonDiffPatchSolutionPath }}
3027
- name: Test
3128
run: dotnet test -c ${{ matrix.build-configuration }} -f ${{ matrix.test-target-framework }} --no-restore --no-build ${{ env.JsonDiffPatchSolutionPath }}
32-

0 commit comments

Comments
 (0)