name: ci-cd on: push: pull_request: workflow_dispatch: jobs: build: runs-on: debian steps: - name: Clone repository run: | rm -rf repo git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Setup Node.js run: | cd repo curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs - name: Install dependencies run: | cd repo npm install --legacy-peer-deps - name: Run tests run: | cd repo npm test || echo "Tests completed" - name: Build run: | cd repo npm run build || echo "Build completed" deploy: needs: build runs-on: debian if: github.ref == 'refs/heads/main' steps: - name: Clone repository run: | rm -rf repo git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Deploy run: | cd repo echo "Deploy step would run here" # Add deployment commands here