Skip to content

Commit

Permalink
extract dotnet version to valuable in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
doron050 committed Jan 2, 2025
1 parent 59a0288 commit f4ae328
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defaults:
env:
SQLC_VERSION: 1.27.0
WASI_SDK_VERSION: 22
DOTNET_VERSION: '8.0.x'

on:
push:
Expand All @@ -28,7 +29,7 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: .NET Lint
uses: zyactions/dotnet-lint@v1
Expand All @@ -55,7 +56,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: install Wasi workload
run: dotnet workload install wasi-experimental
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ permissions:
contents: write
pull-requests: write

env:
DOTNET_VERSION: '8.0.x'

on:
push:
branches: [ "main" ]
Expand All @@ -26,7 +29,7 @@ jobs:
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Updating docs
run: ./docs/scripts/generate_all_docs.sh
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ defaults:
run:
shell: bash

env:
DOTNET_VERSION: '8.0.x'

on:
push:
branches: [ "main" ]
Expand Down Expand Up @@ -30,6 +33,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Load .env file
uses: xom9ikk/dotenv@v2.3.0
with:
Expand Down

0 comments on commit f4ae328

Please sign in to comment.