From 0500e43c37777200cab57d3b143a733fb9595271 Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 19 Jul 2024 14:13:07 +0200 Subject: [PATCH] ci: fixed some things --- .gitea/workflows/build_check.yaml | 17 ++++------------- sonar-project.properties | 1 + 2 files changed, 5 insertions(+), 13 deletions(-) create mode 100644 sonar-project.properties diff --git a/.gitea/workflows/build_check.yaml b/.gitea/workflows/build_check.yaml index 7120eae..6228e7c 100644 --- a/.gitea/workflows/build_check.yaml +++ b/.gitea/workflows/build_check.yaml @@ -16,16 +16,10 @@ jobs: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Setup Go environment - uses: https://github.com/actions/setup-go@v5 + uses: https://gitea.com/actions/setup-go@v3 with: - # The Go version to download (if necessary) and use. Supports semver spec and ranges. - go-version: 1.22.0 # optional - # 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 + go-version-file: 'go.mod' + cache: true - name: Execute Go Test files with coverage report 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 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} - with: - args: > - -Dsonar.projectKey=Anthrove---OtterSpace-SDK \ No newline at end of file + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} \ No newline at end of file diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..f8d8cc9 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=Anthrove---OtterSpace-SDK