From 9ae77cae5e0497a9e152e5570689a64976347be6 Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Tue, 9 Sep 2025 14:52:08 -0400 Subject: [PATCH] workflow updates --- .gitea/workflows/ci.yml | 42 ++++++++++++++--------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 03fb13b..666c9c8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,25 +12,23 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '18' - cache: 'npm' + run: | + echo "Code already available in workspace" + pwd + ls -la + + - name: Check Node.js version + run: | + which node || echo "Node.js not found in PATH" + node --version || echo "Node.js not available" + which npm || echo "npm not found in PATH" + npm --version || echo "npm not available" - # Backend tests - name: Install backend dependencies run: | cd backend npm ci - - name: Run backend linting - run: | - cd backend - npm run lint - - name: Run backend tests env: DATABASE_URL: postgresql://postgres:postgres@localhost:5432/nfoguard_test @@ -40,17 +38,11 @@ jobs: cd backend npm run test - # Frontend tests - name: Install frontend dependencies run: | cd frontend npm ci - - name: Run frontend linting - run: | - cd frontend - npm run lint - - name: Run frontend tests run: | cd frontend @@ -67,15 +59,9 @@ jobs: if: github.ref == 'refs/heads/main' steps: - - name: Checkout code - uses: actions/checkout@v4 - - name: Deploy application run: | echo "Deploying to production..." - # Add your deployment commands here - # Examples: - # docker-compose down - # docker-compose pull - # docker-compose up -d - # or systemctl restart nfoguard \ No newline at end of file + echo "Current directory: $(pwd)" + echo "Available files:" + ls -la \ No newline at end of file