chore(deps): update dependency dotnet-sdk to v8.0.303 (#23) #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '.github/renovate.json' | |
- '.github/workflows/release.yaml' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- '.github/renovate.json' | |
- '.github/workflows/release.yaml' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: SonarCloud Packages Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/sonar/cache | |
key: ${{ runner.os }}-sonar | |
restore-keys: ${{ runner.os }}-sonar | |
- name: SonarCloud Scanner Cache | |
id: cache-sonar-scanner | |
uses: actions/cache@v4 | |
with: | |
path: ~/.sonar/scanner | |
key: ${{ runner.os }}-sonar-scanner | |
restore-keys: ${{ runner.os }}-sonar-scanner | |
- name: Install Java SDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: Install .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Install SonarCloud Scanner | |
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p ~/.sonar/scanner | |
dotnet tool update dotnet-sonarscanner --tool-path ~/.sonar/scanner | |
- name: Build | |
run: | | |
~/.sonar/scanner/dotnet-sonarscanner begin \ | |
/k:"visus:cuidgen" \ | |
/o:"visus" \ | |
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ | |
/d:sonar.host.url="https://sonarcloud.io" | |
dotnet build -c release | |
~/.sonar/scanner/dotnet-sonarscanner end \ | |
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" |