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: push:
branches: branches:
- main - main
- ci/*
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]
@ -16,16 +17,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 +29,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
View File

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