From 16ab0983a7a56880cfbe2c0339ed22a04f7ec69f Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 15 Feb 2025 15:03:44 -0500 Subject: [PATCH] Add CI --- .gitea/workflows/build.yml | 24 ++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..49a73f7 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,24 @@ +name: 'CI' +on: + push: + branches: + - master + +# Jobs +jobs: + # Build Project + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + # Dependencies + - name: Install Dependencies + run: npm ci + # Build + - name: Build + run: npm run build + # Lint + - name: Lint + run: npm run lint diff --git a/package.json b/package.json index e70180f..1500b18 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "", "main": "build/index.js", "scripts": { - "start": "tsc && node build/index.js", + "build": "tsc", + "start": "npm run build && node build/index.js", "lint": "eslint . --ext .ts" }, "author": "TheBrokenRail",