diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 16:31:21 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 16:31:21 +0300 |
commit | 4ef6756f59fe5cb30853683665187b763cd4826a (patch) | |
tree | d56a6f2d2250145e1f7905cfad9322280f65c1f4 | |
parent | 7fb0f81a89979044edfb5633df2d09c164c8e2a8 (diff) | |
download | wecli-4ef6756f59fe5cb30853683665187b763cd4826a.tar.xz wecli-4ef6756f59fe5cb30853683665187b763cd4826a.zip |
Added CI for GitHub and Gitea
-rw-r--r-- | .gitea/workflows/renovate.yml | 26 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 12 | ||||
-rw-r--r-- | .github/workflows/mirror.yml | 17 | ||||
-rw-r--r-- | .renovaterc | 24 | ||||
-rw-r--r-- | renovate.config.cjs | 6 |
5 files changed, 68 insertions, 17 deletions
diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml new file mode 100644 index 0000000..5c3c468 --- /dev/null +++ b/.gitea/workflows/renovate.yml @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2f6a72d --- /dev/null +++ b/.github/workflows/ci.yml @@ -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
\ No newline at end of file diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml deleted file mode 100644 index 8671263..0000000 --- a/.github/workflows/mirror.yml +++ /dev/null @@ -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 }} diff --git a/.renovaterc b/.renovaterc new file mode 100644 index 0000000..8aac33c --- /dev/null +++ b/.renovaterc @@ -0,0 +1,24 @@ +{ + "assignees": [ + "valentineus" + ], + "extends": [ + "config:recommended", + ":disableDependencyDashboard" + ], + "packageRules": [ + { + "groupName": "all digest updates", + "groupSlug": "all-digest", + "matchPackagePatterns": [ + "*" + ], + "matchUpdateTypes": [ + "minor", + "patch", + "pin", + "digest" + ] + } + ] +}
\ No newline at end of file diff --git a/renovate.config.cjs b/renovate.config.cjs new file mode 100644 index 0000000..44bc458 --- /dev/null +++ b/renovate.config.cjs @@ -0,0 +1,6 @@ +module.exports = { + endpoint: "https://code.popov.link", + gitAuthor: "RenovateBot <renovatebot@noreply.localhost>", + optimizeForDisabled: true, + platform: "gitea", +}; |