ci: fixed some things
This commit is contained in:
parent
34c001473b
commit
0500e43c37
@ -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"
|
||||||
@ -34,6 +28,3 @@ jobs:
|
|||||||
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
1
sonar-project.properties
Normal file
@ -0,0 +1 @@
|
|||||||
|
sonar.projectKey=Anthrove---OtterSpace-SDK
|
Loading…
Reference in New Issue
Block a user