Skip to content

Commit c30c46e

Browse files
committed
feat: add CI workflow and dependabot configuration
1 parent f51d172 commit c30c46e

2 files changed

Lines changed: 90 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
directories:
5+
- /docker
6+
schedule: { interval: monthly }
7+
groups: { docker: { patterns: ['*'] } }
8+
9+
- package-ecosystem: npm
10+
directories:
11+
- /server
12+
- /ui
13+
- /versatiles-choro-js
14+
schedule: { interval: monthly }
15+
groups: { npm: { patterns: ['*'] } }
16+
versioning-strategy: increase-if-necessary
17+
18+
- package-ecosystem: github-actions
19+
directory: /
20+
schedule: { interval: monthly }
21+
groups: { github-action: { patterns: ['*'] } }

.github/workflows/ci.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
13+
jobs:
14+
server-test:
15+
name: Test server
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: '22'
26+
27+
- name: Install dependencies
28+
working-directory: ./server
29+
run:
30+
npm install
31+
npm check
32+
33+
ui-test:
34+
name: Test UI
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v3
40+
41+
- name: Set up Node.js
42+
uses: actions/setup-node@v3
43+
with:
44+
node-version: '22'
45+
46+
- name: Install dependencies
47+
working-directory: ./ui
48+
run:
49+
npm install
50+
npm check
51+
52+
library-test:
53+
name: Test library
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v3
59+
60+
- name: Set up Node.js
61+
uses: actions/setup-node@v3
62+
with:
63+
node-version: '22'
64+
65+
- name: Install dependencies
66+
working-directory: ./versatiles-choro-js
67+
run:
68+
npm install
69+
npm check

0 commit comments

Comments
 (0)