Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/renovate-config-validator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Renovate Config Validator

on:
push:
branches:
- main
- master
paths:
- 'renovate.json'
- '.github/workflows/renovate-config-validator.yml'
pull_request:
paths:
- 'renovate.json'
- '.github/workflows/renovate-config-validator.yml'
workflow_dispatch:

jobs:
validate:
name: Validate Renovate Configuration
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Install Renovate
run: npm install -g renovate

- name: Validate Renovate config
run: renovate-config-validator

- name: Check file matches
run: |
echo "Checking that fileMatch patterns cover all dependency files..."

# Check Rust
if [ -f "rust/Cargo.toml" ]; then
echo "✓ Found rust/Cargo.toml"
else
echo "✗ Missing rust/Cargo.toml"
exit 1
fi

# Check Go
if [ -f "golang/go.mod" ]; then
echo "✓ Found golang/go.mod"
else
echo "✗ Missing golang/go.mod"
exit 1
fi

# Check .NET
if [ -f "dotnet/dotnetproject/dotnetproject.csproj" ]; then
echo "✓ Found dotnet/dotnetproject/dotnetproject.csproj"
else
echo "✗ Missing dotnet/dotnetproject/dotnetproject.csproj"
exit 1
fi

# Check Swift
if [ -f "swift/Package.swift" ]; then
echo "✓ Found swift/Package.swift"
else
echo "✗ Missing swift/Package.swift"
exit 1
fi

echo ""
echo "All dependency files are present!"
12 changes: 8 additions & 4 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,20 @@
}
],
"cargo": {
"enabled": true
"enabled": true,
"managerFilePatterns": ["/(^|/)rust/Cargo\\.toml$/"]
},
"gomod": {
"enabled": true
"enabled": true,
"managerFilePatterns": ["/(^|/)golang/go\\.mod$/"]
},
"nuget": {
"enabled": true
"enabled": true,
"managerFilePatterns": ["/(^|/)dotnet/.+\\.csproj$/", "/(^|/)wrongsecrets-binaries\\.sln$/"]
},
"swift": {
"enabled": true
"enabled": true,
"managerFilePatterns": ["/(^|/)swift/Package\\.swift$/"]
},
"github-actions": {
"enabled": true
Expand Down
Loading