add dependabot and npm workspaces #1
Workflow file for this run
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
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 |