Skip to content

Commit e9682f9

Browse files
chore: add ci
1 parent 4d4a7ab commit e9682f9

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version-file: 'package.json'
19+
cache: 'npm'
20+
- run: npm lint
21+
- run: npm ci
22+
- run: npm test

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"author": "",
77
"license": "AGPL-3.0",
88
"keywords": [],
9+
"engines": {
10+
"node": ">=20.0.0"
11+
},
912
"main": "index.js",
1013
"scripts": {
1114
"db:new-migration": "npx knex --knexfile ./db/knexfile.js migrate:make $migrationname",

0 commit comments

Comments
 (0)