Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit bd6574a

Browse files
committed
CI MY BELOVED (it will crash)
1 parent b4f1ff6 commit bd6574a

File tree

3 files changed

+73
-2
lines changed

3 files changed

+73
-2
lines changed

.github/workflows/compile.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Compile KOG Bot
2+
3+
on:
4+
push:
5+
branches: [ "master", "staging" ]
6+
pull_request:
7+
branches: [ "master", "staging" ]
8+
9+
jobs:
10+
11+
compile:
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
19+
- name: Use Node.js 22
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
cache: 'pnpm'
24+
- name: Install dependencies
25+
run: pnpm install
26+
- name: Build project
27+
run: pnpm run build
28+
29+
testrun:
30+
runs-on: ubuntu-22.04
31+
if: github.ref == 'refs/heads/master' || (github.event_name == 'pull_request' && github.base_ref == 'master')
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: 9
38+
- name: Use Node.js 22
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 22
42+
cache: 'pnpm'
43+
- name: Install dependencies
44+
run: pnpm install
45+
- name: Run tests
46+
run: pnpm run start:ci

.github/workflows/node.js.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Node install
2+
on:
3+
push:
4+
5+
jobs:
6+
node:
7+
runs-on: ubuntu-22.04
8+
strategy:
9+
matrix:
10+
node-version: [22]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install pnpm
14+
uses: pnpm/action-setup@v4
15+
with:
16+
version: 9
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
cache: 'pnpm'
22+
- name: Install dependencies
23+
run: pnpm install

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"name": "kog-bot-tomfoolery",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Discord utility for the Kleiner Oil Group.",
55
"main": "build/src/index.js",
66
"type": "module",
77
"scripts": {
88
"build": "tsc",
99
"build:watch": "tsc -w",
10-
"start": "node ."
10+
"start:prod": "node .",
11+
"start:dev": "node . --debug",
12+
"start:ci": "node . --ci"
1113
},
1214
"keywords": [],
1315
"author": "Asynchronite & Sheepboi546",

0 commit comments

Comments
 (0)