-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 1.06 KB
/
dependabot-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: dependabot-ci
on: pull_request
# Cancel in progress workflows
# in the scenario where we already had a run going for that PR/branch/tag but then triggered a new run
concurrency:
group: '${{ github.workflow }} ✨ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
dependabot-tests:
strategy:
fail-fast: false
matrix:
node-version: [18, 20, 22]
name: Node.js ${{matrix.node-version}}
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: ${{matrix.node-version}}
- name: Output Node and NPM versions
run: |
echo "Node.js version: $(node -v)"
echo "NPM version: $(npm -v)"
- 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