Skip to content

Commit

Permalink
add matrix to dependabot-ci workflow (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudNStoyan authored Nov 18, 2024
1 parent 32308d9 commit 82d6e73
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/dependabot-ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
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: 20
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
Expand Down

0 comments on commit 82d6e73

Please sign in to comment.