From e3c09e57927d97fd2233578d5ae93a15fd860308 Mon Sep 17 00:00:00 2001 From: Khalil Date: Sat, 4 Jul 2026 10:29:08 +0000 Subject: [PATCH] Add CI workflow --- .gitea/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..71fa30b --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: CI / Build +on: + push: + branches: + - main + pull_request: + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up Node.js for API + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install API Dependencies + working-directory: ./api + run: npm install + + - name: Install Frontend Dependencies + working-directory: ./frontend + run: npm install + + - name: Run Backend Syntax Check + working-directory: ./api + run: node -c server.js + + - name: CI Completed Successfully + run: echo "🎉 Build and checks passed successfully!"