diff options
| -rw-r--r-- | .gitea/workflows/renovate.yml | 27 | ||||
| -rw-r--r-- | .gitea/workflows/test.yml | 16 | ||||
| -rw-r--r-- | .github/renovate.json | 16 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 28 | ||||
| -rw-r--r-- | .github/workflows/mirror.yml | 25 | ||||
| -rw-r--r-- | .renovaterc | 30 | ||||
| -rw-r--r-- | renovate.config.cjs | 6 |
7 files changed, 79 insertions, 69 deletions
diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..e020538 --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -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 }} diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..982f712 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -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 diff --git a/.github/renovate.json b/.github/renovate.json deleted file mode 100644 index 7904aa8..0000000 --- a/.github/renovate.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended", ":disableDependencyDashboard"], - "assignees": ["valentineus"], - "labels": ["dependencies", "automated"], - "packageRules": [ - { - "description": "Group patch & minor updates together", - "groupName": "all digest updates", - "groupSlug": "all-digest", - "matchUpdateTypes": ["minor", "patch", "pin", "digest"], - "matchPackageNames": ["*"], - "automerge": true - } - ] -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 2b8735b..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: CI - -on: - push: - branches: [master] - pull_request: - branches: [master] - -permissions: - contents: read - -jobs: - test: - name: Test - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v5 - - name: Set up Node.js - uses: actions/setup-node@v5 - with: - node-version: 22 - - name: Install dependencies - run: npm ci - - name: Run checks - run: npm run check - - name: Run type checks - run: npm run typecheck diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml deleted file mode 100644 index 9fed247..0000000 --- a/.github/workflows/mirror.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Mirror - -on: - push: - branches: [master] - pull_request: - branches: [master] - -permissions: - contents: read - -jobs: - mirror: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - name: Mirror to remote repository - uses: yesolutions/mirror-action@master - with: - REMOTE: "https://git.popov.link/popov.link.git" - GIT_USERNAME: ${{ secrets.GIT_USERNAME }} - GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }} diff --git a/.renovaterc b/.renovaterc new file mode 100644 index 0000000..bc629bb --- /dev/null +++ b/.renovaterc @@ -0,0 +1,30 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ":disableDependencyDashboard" + ], + "assignees": [ + "valentineus" + ], + "labels": [ + "dependencies", + "automated" + ], + "packageRules": [ + { + "groupName": "all digest updates", + "groupSlug": "all-digest", + "matchUpdateTypes": [ + "minor", + "patch", + "pin", + "digest" + ], + "matchPackageNames": [ + "*" + ], + "automerge": true + } + ] +} diff --git a/renovate.config.cjs b/renovate.config.cjs new file mode 100644 index 0000000..9d56531 --- /dev/null +++ b/renovate.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + endpoint: "https://code.popov.link", + gitAuthor: "renovate[bot] <renovatebot@noreply.localhost>", + optimizeForDisabled: true, + platform: "gitea", +};
\ No newline at end of file |
