Compare commits

...

2 Commits

Author SHA1 Message Date
d330eb6f52
chore(ci): add unit-test workflow
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-02 18:44:32 +01:00
e880ea9041
chore(renovate): adapt configuration 2025-02-02 18:37:12 +01:00
2 changed files with 86 additions and 14 deletions

View File

@ -0,0 +1,29 @@
name: Run unit tests
on:
pull_request:
branches:
- '*'
types: [ "opened", "reopened", "synchronize" ]
push:
branches:
- '*'
workflow_dispatch: {}
jobs:
cluster:
container:
image: docker.io/library/golang:1.23.5
runs-on:
- docker
steps:
- name: Install tooling
run: |
apt update --yes
apt upgrade --ye s
apt install git npm
- env:
GOPROXY: ${{ vars.GOPROXY }}
GONOSUMDB: ${{ vars.GONOSUMDB }}
name: Execute containerized unit test
run: make test

View File

@ -1,35 +1,78 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assigneesFromCodeOwners": true,
"labels": [ "renovate" ],
"packageRules": [
{
"description": "Automatically update minor and patch versions of used drone-ci images",
"automerge": false,
"description": "Disable all package updates by default",
"enabled": false,
"matchPackagePatterns": [
"*"
],
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin",
"digest"
]
},
{
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
"automerge": true,
"description": "Automatically update minor and patch versions of used drone-ci images",
"enabled": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"description": "Automatically update minor and patch versions of go modules",
"addLabels": [ "renovate/gomod", "renovate/automerge" ],
"addLabels": [
"renovate/automerge",
"renovate/github-action"
],
"automerge": true,
"matchBaseBranches": [ "master" ],
"matchManagers": [ "gomod" ],
"matchUpdateTypes": [ "minor", "patch" ]
"description": "Automatically update public github-actions dependencies",
"enabled": true,
"matchBaseBranches": [
"master"
],
"matchManagers": [
"github-actions"
],
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"description": "Prepare MR for major update minor of go modules",
"addLabels": [ "renovate/gomod" ],
"automerge": false,
"matchBaseBranches": [ "master" ],
"matchManagers": [ "gomod" ],
"matchUpdateTypes": [ "major" ]
"addLabels": [
"renovate/automerge",
"renovate/golang"
],
"automerge": true,
"description": "Automatically update public go dependencies",
"enabled": true,
"matchBaseBranches": [
"master"
],
"matchDatasources": [
"go"
],
"matchUpdateTypes": [
"minor",
"patch"
]
}
],
"platformAutomerge": true,
"postUpdateOptions": [
"gomodTidy"
],
"prConcurrentLimit": 0,
"prHourlyLimit": 0,
"rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch"
}