Skip to content

Commit

Permalink
Update CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikfroehling committed Feb 2, 2025
1 parent 90bff7b commit ba85eb9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/constants.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DOTNET_VERSION_STABLE: '9.0.x'
DOTNET_VERSION_CURRENT_STABLE: '9.0.x'
DOTNET_8_VERSION_STABLE: '8.0.x'
DOTNET_VERSION_PREVIEW: ''
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ on:
required: true
type: boolean

permissions: read

jobs:
build:
if: ${{ inputs.should_run }}
Expand Down Expand Up @@ -75,7 +77,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
${{ env.DOTNET_VERSION_STABLE }}
${{ env.DOTNET_VERSION_CURRENT_STABLE }}
${{ env.DOTNET_8_VERSION_STABLE }}
- name: Restore dependencies
run: dotnet restore
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ on:
- 'src/**'
- 'docs/**'

permissions: read

jobs:
init:
runs-on: windows-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
required: true
type: string

permissions: read

jobs:
build:
if: ${{ inputs.should_run }}
Expand All @@ -43,7 +45,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
${{ env.DOTNET_VERSION_STABLE }}
${{ env.DOTNET_VERSION_CURRENT_STABLE }}
${{ env.DOTNET_8_VERSION_STABLE }}
- name: Setup DocFX
run: dotnet tool update -g docfx
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
- 'Source/**'
- 'src/**'

permissions: read

jobs:
sonarcloud:
name: SonarCloud
Expand All @@ -33,7 +35,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
${{ env.DOTNET_VERSION_STABLE }}
${{ env.DOTNET_VERSION_CURRENT_STABLE }}
${{ env.DOTNET_8_VERSION_STABLE }}
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
Expand Down

0 comments on commit ba85eb9

Please sign in to comment.