aboutsummaryrefslogtreecommitdiff
path: root/.gitea
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-02-10 01:47:25 +0300
committerValentin Popov <valentin@popov.link>2026-02-10 01:47:25 +0300
commit9e2dcb44a6df4e1dc10d92ea5bcdf166b100a6da (patch)
treea7ca835fb87bc30f9cfa9dd2adc8457ddd877ecb /.gitea
parent828106ba810063801b14ea3d5b0d33802fcf0d2b (diff)
downloadfparkan-9e2dcb44a6df4e1dc10d92ea5bcdf166b100a6da.tar.xz
fparkan-9e2dcb44a6df4e1dc10d92ea5bcdf166b100a6da.zip
feat: обновить конфигурацию CI для тестирования и линтинга кода
Diffstat (limited to '.gitea')
-rw-r--r--.gitea/workflows/renovate.yml3
-rw-r--r--.gitea/workflows/test.yml20
2 files changed, 17 insertions, 6 deletions
diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml
index ccabfe4..9b407ca 100644
--- a/.gitea/workflows/renovate.yml
+++ b/.gitea/workflows/renovate.yml
@@ -3,9 +3,6 @@ name: RenovateBot
on:
schedule:
- cron: "@daily"
- push:
- branches:
- - master
jobs:
renovate:
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml
index 56f08ce..516aae8 100644
--- a/.gitea/workflows/test.yml
+++ b/.gitea/workflows/test.yml
@@ -3,11 +3,25 @@ name: Test
on: [push, pull_request]
jobs:
+ lint:
+ name: Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ components: clippy
+ - name: Cargo check
+ run: cargo check --workspace --all-targets --all-features
+ - name: Clippy (deny warnings)
+ run: cargo clippy --workspace --all-targets --all-features -- -D warnings
+
test:
- name: cargo test
+ name: Test
runs-on: ubuntu-latest
+ needs: lint
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- - run: cargo check --all
- - run: cargo test --all-features
+ - name: Cargo test
+ run: cargo test --workspace --all-features