diff --git a/.gitea/workflows/deploy-prod.yml b/.gitea/workflows/deploy-prod.yml index 34497c0..8106330 100644 --- a/.gitea/workflows/deploy-prod.yml +++ b/.gitea/workflows/deploy-prod.yml @@ -6,66 +6,6 @@ on: - prod jobs: - test: - runs-on: ubuntu-latest - - services: - postgres: - image: postgres:15-alpine - env: - POSTGRES_PASSWORD: postgres - POSTGRES_DB: lediscord_test - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5433:5432 - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.11' - - - name: Install backend dependencies - run: | - cd backend - pip install -r requirements.txt - - - name: Run backend tests - run: | - cd backend - python -m pytest tests/ -v || true - env: - DATABASE_URL: postgresql://postgres:postgres@localhost:5433/lediscord_test - JWT_SECRET_KEY: test-secret-key - CORS_ORIGINS: http://localhost:3000 - ADMIN_EMAIL: test@test.com - ADMIN_PASSWORD: test123 - ENVIRONMENT: test - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '18' - cache: 'npm' - cache-dependency-path: frontend/package-lock.json - - - name: Install frontend dependencies - run: | - cd frontend - npm ci - - - name: Build frontend - run: | - cd frontend - npm run build - build-and-deploy: needs: test runs-on: ubuntu-latest