Skip to content

Commit d44ac77

Browse files
committed
Add simple CI
1 parent 7d48f02 commit d44ac77

File tree

4 files changed

+60
-15788
lines changed

4 files changed

+60
-15788
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
assignees:
6+
- "s0ph1e"
7+
- "aivus"
8+
open-pull-requests-limit: 10
9+
schedule:
10+
interval: "weekly"
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
assignees:
14+
- "aivus"
15+
schedule:
16+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build and Test
2+
3+
on:
4+
workflow_dispatch: ~
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build_and_test:
12+
name: Build and Test
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
node-version:
18+
- 16
19+
- 18
20+
- 20
21+
- current
22+
os:
23+
- ubuntu-latest
24+
- windows-latest
25+
include:
26+
- node-version: 20
27+
os: macos-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
- name: Install dependencies
35+
run: npm i
36+
- name: Build the app
37+
run: npm run build
38+
- name: Start the app in production mode
39+
run: npm run start:prod &
40+
- name: Wait for the app to start
41+
run: sleep 5
42+
- name: Check that
43+
run: curl -sSf http://localhost:3000 > /dev/null

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ $ npm run start
2626
$ npm run start:dev
2727

2828
# production mode
29+
$ npm run build
2930
$ npm run start:prod
3031
```

0 commit comments

Comments
 (0)