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", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assigneesFromCodeOwners": true,
"labels": [ "renovate" ], "labels": [ "renovate" ],
"packageRules": [ "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" ], "addLabels": [ "renovate/droneci", "renovate/automerge" ],
"automerge": true, "automerge": true,
"description": "Automatically update minor and patch versions of used drone-ci images",
"enabled": true,
"matchManagers": "droneci", "matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"] "matchUpdateTypes": [
"minor",
"patch"
]
}, },
{ {
"description": "Automatically update minor and patch versions of go modules", "addLabels": [
"addLabels": [ "renovate/gomod", "renovate/automerge" ], "renovate/automerge",
"renovate/github-action"
],
"automerge": true, "automerge": true,
"matchBaseBranches": [ "master" ], "description": "Automatically update public github-actions dependencies",
"matchManagers": [ "gomod" ], "enabled": true,
"matchUpdateTypes": [ "minor", "patch" ] "matchBaseBranches": [
"master"
],
"matchManagers": [
"github-actions"
],
"matchUpdateTypes": [
"minor",
"patch"
]
}, },
{ {
"description": "Prepare MR for major update minor of go modules", "addLabels": [
"addLabels": [ "renovate/gomod" ], "renovate/automerge",
"automerge": false, "renovate/golang"
"matchBaseBranches": [ "master" ], ],
"matchManagers": [ "gomod" ], "automerge": true,
"matchUpdateTypes": [ "major" ] "description": "Automatically update public go dependencies",
"enabled": true,
"matchBaseBranches": [
"master"
],
"matchDatasources": [
"go"
],
"matchUpdateTypes": [
"minor",
"patch"
]
} }
], ],
"platformAutomerge": true,
"postUpdateOptions": [ "postUpdateOptions": [
"gomodTidy" "gomodTidy"
], ],
"prConcurrentLimit": 0,
"prHourlyLimit": 0,
"rebaseLabel": "renovate/rebase", "rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch" "rebaseWhen": "behind-base-branch"
} }