Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit b677a87

Browse files
chore: update global workflows (#190)
1 parent 7b6584c commit b677a87

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
version: 2
77
updates:
8+
- package-ecosystem: "cargo"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
time: "07:30"
13+
open-pull-requests-limit: 10
14+
815
- package-ecosystem: "docker"
916
directory: "/"
1017
schedule:
@@ -18,13 +25,31 @@ updates:
1825
interval: "daily"
1926
time: "08:30"
2027
open-pull-requests-limit: 10
28+
groups:
29+
docker-actions:
30+
applies-to: version-updates
31+
patterns:
32+
- "docker/*"
33+
github-actions:
34+
applies-to: version-updates
35+
patterns:
36+
- "actions/*"
37+
- "github/*"
38+
lizardbyte-actions:
39+
applies-to: version-updates
40+
patterns:
41+
- "LizardByte/*"
2142

2243
- package-ecosystem: "npm"
2344
directory: "/"
2445
schedule:
2546
interval: "daily"
2647
time: "09:00"
2748
open-pull-requests-limit: 10
49+
groups:
50+
dev-dependencies:
51+
applies-to: version-updates
52+
dependency-type: "development"
2853

2954
- package-ecosystem: "nuget"
3055
directory: "/"
@@ -39,6 +64,11 @@ updates:
3964
interval: "daily"
4065
time: "10:00"
4166
open-pull-requests-limit: 10
67+
groups:
68+
pytest-dependencies:
69+
applies-to: version-updates
70+
patterns:
71+
- "pytest*"
4272

4373
- package-ecosystem: "gitsubmodule"
4474
directory: "/"

.github/workflows/common-lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,28 @@ jobs:
193193
exit 1
194194
fi
195195
196+
- name: Rust - find Cargo.toml
197+
id: run_cargo
198+
if: always()
199+
run: |
200+
# check if Cargo.toml exists
201+
if [ -f "Cargo.toml" ]; then
202+
echo "found_cargo=true" >> $GITHUB_OUTPUT
203+
else
204+
echo "found_cargo=false" >> $GITHUB_OUTPUT
205+
fi
206+
207+
- name: Rust - setup toolchain
208+
if: always() && steps.run_cargo.outputs.found_cargo == 'true'
209+
uses: dtolnay/rust-toolchain@stable
210+
with:
211+
components: rustfmt
212+
213+
- name: Rust - cargo fmt
214+
if: always() && steps.run_cargo.outputs.found_cargo == 'true'
215+
run: |
216+
cargo fmt -- --check
217+
196218
- name: YAML - find files
197219
id: yaml_files
198220
if: always()

0 commit comments

Comments
 (0)