ci: fixed some things

This commit is contained in:
SoXX 2024-07-19 14:13:07 +02:00
parent 34c001473b
commit 0500e43c37
2 changed files with 5 additions and 13 deletions

View File

@ -16,16 +16,10 @@ jobs:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup Go environment - name: Setup Go environment
uses: https://github.com/actions/setup-go@v5 uses: https://gitea.com/actions/setup-go@v3
with: with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges. go-version-file: 'go.mod'
go-version: 1.22.0 # optional cache: true
# Path to the go.mod file.
go-version-file: ./go.mod # optional
# Set this option to true if you want the action to always check for the latest available version that satisfies the version spec
check-latest: true # optional
# Used to specify whether caching is needed. Set to true, if you'd like to enable caching.
cache: true # optional
- name: Execute Go Test files with coverage report - name: Execute Go Test files with coverage report
run: TESTCONTAINERS_RYUK_DISABLED=true go test -v ./... -json -coverprofile="coverage.out" | tee "test-report.out" run: TESTCONTAINERS_RYUK_DISABLED=true go test -v ./... -json -coverprofile="coverage.out" | tee "test-report.out"
@ -33,7 +27,4 @@ jobs:
- uses: sonarsource/sonarqube-scan-action@master - uses: sonarsource/sonarqube-scan-action@master
env: env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
with:
args: >
-Dsonar.projectKey=Anthrove---OtterSpace-SDK

1
sonar-project.properties Normal file
View File

@ -0,0 +1 @@
sonar.projectKey=Anthrove---OtterSpace-SDK