Skip to content

Commit c983451

Browse files
committed
add actions
1 parent 0019751 commit c983451

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Discord Event Notification Bot",
55
"main": "index.js",
66
"scripts": {
7-
"start": "node index.js"
7+
"start": "node index.js",
8+
"test": "echo \"No tests specified\" && exit 0"
89
},
910
"dependencies": {
1011
"discord.js": "^14.14.1",

0 commit comments

Comments
 (0)