Skip to content

Commit

Permalink
add dependabot and dependabot ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudNStoyan committed Nov 18, 2024
1 parent c6644fa commit 2e45444
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: 'npm'
labels: ['dependencies', 'autoupdate']
directory: '/'
schedule:
interval: 'weekly'
versioning-strategy: increase
groups:
production-dependencies:
applies-to: version-updates
dependency-type: 'production'
update-types:
- 'minor'
- 'patch'
development-dependencies:
applies-to: version-updates
dependency-type: 'development'
update-types:
- 'minor'
- 'patch'
ignore:
- dependency-name: '*'
update-types: ['version-update:semver-major']
16 changes: 16 additions & 0 deletions .github/workflows/dependabot-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: dependabot-ci
on: pull_request

jobs:
dependabot-tests:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build --workspaces --if-present
- run: npm test --if-present # run the monorepo root tests
- run: npm test --workspaces --if-present # run the individual packages tests

0 comments on commit 2e45444

Please sign in to comment.