File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Discord Bot CI/CD
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ - name : Setup Node.js
17
+ uses : actions/setup-node@v2
18
+ with :
19
+ node-version : ' 18.x'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+
24
+ - name : Run tests
25
+ run : npm test || true
26
+
27
+ - name : Deploy to Railway
28
+ run : echo "Deployment handled by Railway"
Original file line number Diff line number Diff line change 4
4
"description" : " Discord Event Notification Bot" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "start" : " node index.js"
7
+ "start" : " node index.js" ,
8
+ "test" : " echo \" No tests specified\" && exit 0"
8
9
},
9
10
"dependencies" : {
10
11
"discord.js" : " ^14.14.1" ,
You can’t perform that action at this time.
0 commit comments