Skip to content

Commit 2ff6a5a

Browse files
authored
add global json (#170)
* add global json * extract dotnet version to valuable in ci
1 parent ea004f3 commit 2ff6a5a

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ defaults:
66
env:
77
SQLC_VERSION: 1.27.0
88
WASI_SDK_VERSION: 22
9+
DOTNET_VERSION: '8.0.x'
910

1011
on:
1112
push:
@@ -28,7 +29,7 @@ jobs:
2829
- name: Set up .NET
2930
uses: actions/setup-dotnet@v4
3031
with:
31-
dotnet-version: "8.0.x"
32+
dotnet-version: ${{ env.DOTNET_VERSION }}
3233

3334
- name: .NET Lint
3435
uses: zyactions/dotnet-lint@v1
@@ -55,7 +56,7 @@ jobs:
5556
- name: Setup Dotnet
5657
uses: actions/setup-dotnet@v4
5758
with:
58-
dotnet-version: '8.0.x'
59+
dotnet-version: ${{ env.DOTNET_VERSION }}
5960

6061
- name: install Wasi workload
6162
run: dotnet workload install wasi-experimental

.github/workflows/docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ permissions:
77
contents: write
88
pull-requests: write
99

10+
env:
11+
DOTNET_VERSION: '8.0.x'
12+
1013
on:
1114
push:
1215
branches: [ "main" ]
@@ -26,7 +29,7 @@ jobs:
2629
- name: Set up .NET
2730
uses: actions/setup-dotnet@v4
2831
with:
29-
dotnet-version: "8.0.x"
32+
dotnet-version: ${{ env.DOTNET_VERSION }}
3033

3134
- name: Updating docs
3235
run: ./docs/scripts/generate_all_docs.sh

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ defaults:
33
run:
44
shell: bash
55

6+
env:
7+
DOTNET_VERSION: '8.0.x'
8+
69
on:
710
push:
811
branches: [ "main" ]
@@ -30,6 +33,11 @@ jobs:
3033
steps:
3134
- uses: actions/checkout@v4
3235

36+
- name: Set up .NET
37+
uses: actions/setup-dotnet@v4
38+
with:
39+
dotnet-version: ${{ env.DOTNET_VERSION }}
40+
3341
- name: Load .env file
3442
uses: xom9ikk/[email protected]
3543
with:

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.100",
4+
"rollForward": "latestFeature"
5+
}
6+
}

0 commit comments

Comments
 (0)