Skip to content

Commit 48210c3

Browse files
committed
ci: specify framework version
1 parent 95d7b93 commit 48210c3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717
- name: Build
18-
run: ./build.sh
18+
run: ./build.sh net8.0
1919
- name: Test
20-
run: ./test.sh
21-
20+
run: ./test.sh net8.0
21+
2222
test-net9:
2323
runs-on: ubuntu-latest
2424
container: mcr.microsoft.com/dotnet/sdk:9.0
@@ -27,7 +27,7 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v3
2929
- name: Build
30-
run: ./build.sh
30+
run: ./build.sh net9.0
3131
- name: Test
32-
run: ./test.sh
32+
run: ./test.sh net9.0
3333

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env bash
22
set -e
3-
dotnet restore
4-
dotnet build -c Release
3+
dotnet restore -p:TargetFramework="$1"
4+
dotnet build -c Release -p:TargetFramework="$1"

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22
set -e
3-
dotnet test -c Release
3+
dotnet test -c Release -p:TargetFramework="$1"

0 commit comments

Comments
 (0)