Skip to content

Commit 4523de1

Browse files
committed
ci: Add GitHub Actions CI workflow and Dependabot config
1 parent a17ce96 commit 4523de1

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

.github/dependabot.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for npm
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "monday"
9+
time: "04:00"
10+
open-pull-requests-limit: 1
11+
groups:
12+
npm-dependencies:
13+
patterns:
14+
- "*"
15+
update-types:
16+
- "minor"
17+
- "patch"
18+
reviewers:
19+
- "johan-gorter"
20+
commit-message:
21+
prefix: "deps"
22+
include: "scope"
23+
24+
# Enable version updates for GitHub Actions
25+
- package-ecosystem: "github-actions"
26+
directory: "/"
27+
schedule:
28+
interval: "weekly"
29+
day: "monday"
30+
time: "04:00"
31+
open-pull-requests-limit: 1
32+
groups:
33+
github-actions:
34+
patterns:
35+
- "*"
36+
reviewers:
37+
- "johan-gorter"
38+
commit-message:
39+
prefix: "ci"
40+
include: "scope"

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "22"
20+
cache: "npm"
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Check formatting
26+
run: npm run format
27+
28+
- name: Lint
29+
run: npm run lint
30+
31+
- name: Run tests with coverage
32+
run: npm run coverage
33+
34+
- name: Build
35+
run: npm run build

0 commit comments

Comments
 (0)