Compare commits

..

2 Commits

Author SHA1 Message Date
8fe87e12df ci: added ci branch for trigger
Some checks failed
Gitea Build Check / Build (push) Failing after 4m40s
2024-07-19 14:13:31 +02:00
0500e43c37 ci: fixed some things 2024-07-19 14:13:07 +02:00
2 changed files with 6 additions and 13 deletions

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- main
- ci/*
pull_request:
branches: [ "main" ]
@ -16,16 +17,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 +28,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
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}

1
sonar-project.properties Normal file
View File

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