-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add dependabot and npm workspaces (#10)
- Loading branch information
1 parent
5867104
commit 1fdf24e
Showing
9 changed files
with
2,089 additions
and
11,968 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.