From 81bcfbdc654f9da9f4c99b0d16fc1217eec0a8e4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 5 Jun 2025 23:10:57 +0000 Subject: Migrate from Gitea Actions to GitHub Actions --- .gitea/workflows/ci.yml | 22 ---------------------- .gitea/workflows/renovate.yml | 18 ------------------ .github/dependabot.yml | 14 ++++++++++++++ .github/renovate.json | 16 ++++++++++++++++ .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ renovate.config.cjs | 6 ------ renovate.json | 20 -------------------- 7 files changed, 56 insertions(+), 66 deletions(-) delete mode 100644 .gitea/workflows/ci.yml delete mode 100644 .gitea/workflows/renovate.yml create mode 100644 .github/dependabot.yml create mode 100644 .github/renovate.json create mode 100644 .github/workflows/ci.yml delete mode 100644 renovate.config.cjs delete mode 100644 renovate.json diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml deleted file mode 100644 index e06db1a..0000000 --- a/.gitea/workflows/ci.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: CI - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - - name: Install dependencies - run: npm ci - - name: Run checks - run: npm run check diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml deleted file mode 100644 index 29ffa45..0000000 --- a/.gitea/workflows/renovate.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: RenovateBot -on: - schedule: - - cron: "@daily" - -jobs: - renovate: - container: ghcr.io/renovatebot/renovate:40-full - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Run Renovate updates - run: renovate - env: - RENOVATE_CONFIG_FILE: renovate.config.cjs - RENOVATE_REPOSITORIES: ${{ gitea.repository }} - RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7233aac --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..7904aa8 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,16 @@ +{ + "$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 new file mode 100644 index 0000000..0333c75 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +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@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Install dependencies + run: npm ci + - name: Run checks + run: npm run check diff --git a/renovate.config.cjs b/renovate.config.cjs deleted file mode 100644 index 44bc458..0000000 --- a/renovate.config.cjs +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - endpoint: "https://code.popov.link", - gitAuthor: "RenovateBot ", - optimizeForDisabled: true, - platform: "gitea", -}; diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 8140493..0000000 --- a/renovate.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended", ":disableDependencyDashboard"], - "assignees": ["valentineus"], - "rangeStrategy": "bump", - "npm": { - "enabled": true, - "ignoreScripts": true, - "skipInstalls": false - }, - "packageRules": [ - { - "description": "Group patch & minor updates together", - "groupName": "all digest updates", - "groupSlug": "all-digest", - "matchUpdateTypes": ["minor", "patch", "pin", "digest"], - "matchPackageNames": ["*"] - } - ] -} -- cgit v1.2.3