Added CI for GitHub and Gitea
All checks were successful
RenovateBot / renovate (push) Successful in 32s

This commit is contained in:
Valentin Popov 2024-07-19 17:31:21 +04:00
parent 7fb0f81a89
commit 4ef6756f59
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401
5 changed files with 68 additions and 17 deletions

View File

@ -0,0 +1,26 @@
name: RenovateBot
on:
schedule:
- cron: "@daily"
push:
branches:
- master
jobs:
renovate:
container: ghcr.io/renovatebot/renovate:37
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run renovate
run: |
renovate
env:
LOG_LEVEL: debug
RENOVATE_CONFIG_FILE: renovate.config.cjs
RENOVATE_REPOSITORIES: ${{ gitea.repository }}
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}

12
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: test suite
on: [push, pull_request]
jobs:
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --all
- run: cargo test --all-features

View File

@ -1,17 +0,0 @@
name: Workflow
on: [push]
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://git.popov.link/wecli.git'
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}

24
.renovaterc Normal file
View File

@ -0,0 +1,24 @@
{
"assignees": [
"valentineus"
],
"extends": [
"config:recommended",
":disableDependencyDashboard"
],
"packageRules": [
{
"groupName": "all digest updates",
"groupSlug": "all-digest",
"matchPackagePatterns": [
"*"
],
"matchUpdateTypes": [
"minor",
"patch",
"pin",
"digest"
]
}
]
}

6
renovate.config.cjs Normal file
View File

@ -0,0 +1,6 @@
module.exports = {
endpoint: "https://code.popov.link",
gitAuthor: "RenovateBot <renovatebot@noreply.localhost>",
optimizeForDisabled: true,
platform: "gitea",
};