Skip to content

Commit f359d5a

Browse files
Add Dependabot configuration and CI workflow for automated dependency updates and testing
1 parent 0b0e39b commit f359d5a

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.github/dependabot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This is the dependabot configuration file that automates dependency updates
2+
# Updates section configures how dependabot should handle dependency updates:
3+
#
4+
# - Monitors NPM dependencies in the root directory
5+
# - Checks for updates weekly
6+
# - Groups updates based on their type (dev grouped by minor/patch or prod grouped by patch)
7+
#
8+
# - Monitors GitHub Actions dependencies in the root directory
9+
# - Checks for updates weekly
10+
#
11+
# Learn more at https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#configuration-options-for-the-dependabotyml-file
12+
version: 2
13+
updates:
14+
- package-ecosystem: npm
15+
directory: /
16+
schedule:
17+
interval: weekly
18+
groups:
19+
npm-development:
20+
dependency-type: development
21+
update-types:
22+
- minor
23+
- patch
24+
npm-production:
25+
dependency-type: production
26+
update-types:
27+
- patch
28+
- package-ecosystem: github-actions
29+
directory: /
30+
schedule:
31+
interval: weekly

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [22.x, 24.x]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
20+
21+
- name: Setup Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Build the application
31+
run: npm run build
32+
33+
- name: Run tests
34+
run: npm test

0 commit comments

Comments
 (0)