chore: add Renovate configuration and workflows
- Introduced .renovaterc for Renovate settings. - Added renovate.config.cjs for Gitea integration. - Created .gitea/workflows/renovate.yml for daily Renovate runs. - Added .gitea/workflows/test.yml for CI testing. - Removed outdated GitHub workflows and configuration files.
This commit is contained in:
27
.gitea/workflows/renovate.yml
Normal file
27
.gitea/workflows/renovate.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: RenovateBot
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "@daily"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
container: ghcr.io/renovatebot/renovate:43
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Run renovate
|
||||
run: |
|
||||
renovate
|
||||
env:
|
||||
LOG_LEVEL: ${{ vars.RENOVATE_LOG_LEVEL }}
|
||||
RENOVATE_LOG_LEVEL: ${{ vars.RENOVATE_LOG_LEVEL }}
|
||||
RENOVATE_CONFIG_FILE: renovate.config.cjs
|
||||
RENOVATE_REPOSITORIES: ${{ gitea.repository }}
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
16
.gitea/workflows/test.yml
Normal file
16
.gitea/workflows/test.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
name: Test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: npm test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
- run: npm ci
|
||||
- run: npm run check
|
||||
- run: npm run typecheck
|
||||
Reference in New Issue
Block a user