13 Commits

Author SHA1 Message Date
ee2a53a447 Change events 2025-08-19 17:15:14 +02:00
ed48f94bfc Add events 2025-08-19 17:14:33 +02:00
6f396d96a1 set repo 2025-08-19 17:14:11 +02:00
597df8e6f6 set token in env var
All checks were successful
Go-Tests / tests (push) Successful in 2m4s
Go-Tests / sonar (push) Successful in 53s
2025-08-19 17:02:17 +02:00
1f558fe8f4 change organization
Some checks failed
Go-Tests / tests (push) Successful in 1m52s
Go-Tests / sonar (push) Failing after 18s
2025-08-19 16:58:05 +02:00
d27b9491f3 Use manual sonar...
Some checks failed
Go-Tests / tests (push) Successful in 2m2s
Go-Tests / sonar (push) Failing after 18s
2025-08-19 16:40:43 +02:00
763b204760 move everything
Some checks failed
Go-Tests / tests (push) Successful in 1m57s
Go-Tests / sonar (push) Failing after 29s
2025-08-19 16:28:35 +02:00
295d7d5373 use fork of upload artifact
Some checks failed
Go-Tests / tests (push) Successful in 1m57s
Go-Tests / sonar (push) Failing after 1m30s
2025-08-19 16:20:03 +02:00
7d48072102 v5 doesn't exists... 2025-08-19 16:15:23 +02:00
23fb18d792 try upload artifact v5
Some checks failed
Go-Tests / tests (push) Failing after 22s
Go-Tests / sonar (push) Has been skipped
2025-08-19 16:14:21 +02:00
323b6e651c fix helm dep
Some checks failed
Go-Tests / tests (push) Failing after 2m29s
Go-Tests / sonar (push) Has been skipped
2025-08-19 16:03:47 +02:00
c86b2a5729 test workfow
Some checks failed
Go-Tests / tests (push) Failing after 3m47s
Go-Tests / sonar (push) Has been skipped
2025-08-19 15:09:30 +02:00
88f69b1935 test workfow 2025-08-19 15:08:31 +02:00
5 changed files with 77 additions and 55 deletions

View File

@@ -1,14 +1,16 @@
name: Build and push OCI image
on:
workflow_dispatch:
push:
tags:
- "**"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
VERSION: ${{ github.ref_name }}
REGISTRY: repo.katenary.io
IMAGE_NAME: ${{ gitea.repository }}
VERSION: ${{ gitea.ref_name }}
STORAGE_DRIVER: vfs
jobs:
build:

View File

@@ -0,0 +1,70 @@
name: Go-Tests
on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
push:
branches:
- "master"
- "main"
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
jobs:
tests:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.25
- name: Install helm
run: |
command -v helm || curl -sSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Tidy
run: |
export GOPROXY='https://proxy.golang.org,direct'
go mod tidy
- name: Launch Test
run: |
go vet ./...
go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
# - uses: actions/upload-artifact@v4
- name: Upload artifact
uses: christopherhx/gitea-upload-artifact@v4
with:
name: tests-results
path: |
coverprofile.out
gotest.json
sonar:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
needs: tests
steps:
- name: Checkout
uses: actions/checkout@v4
#- uses: actions/download-artifact@v4
- name: Download artifact
uses: christopherhx/gitea-download-artifact@v4
with:
name: tests-results
- name: Sonar
run: |
export SONAR_SCANNER_VERSION=7.2.0.5079
export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
sonar-scanner \
-Dsonar.organization=katenary \
-Dsonar.projectKey=katenary_katenary

View File

@@ -1,50 +0,0 @@
name: Go-Tests
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
- main
push:
branches:
- master
- main
- "releases/**"
jobs:
tests:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.24
- name: Launch Test
run: |
go mod tidy
go vet ./... && go test -coverprofile=coverprofile.out -json -v ./... > gotest.json
- uses: actions/upload-artifact@v4
with:
name: tests-results
path: |
coverprofile.out
gotest.json
sonar:
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: tests-results
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5.2.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}

View File

@@ -1,5 +1,5 @@
sonar.projectKey=metal3d_katenary
sonar.organization=metal3d
sonar.projectKey=katenary_katenary
sonar.organization=katenary
sonar.go.tests.reportPaths=gotest.json