From f3e6829bf4fbce4deefdbd2dd7c50d5fcbc12266 Mon Sep 17 00:00:00 2001 From: Wes Weitzel Date: Wed, 21 Aug 2024 14:48:04 -0700 Subject: [PATCH] Turn off cypress tests for now --- .github/workflows/main.yml | 44 +------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b516053..ffb9fe1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,51 +58,9 @@ jobs: name: build - name: Run unit tests run: bun run test - cypress-tests: - name: E2E Tests - runs-on: ubuntu-latest - needs: build - env: - CYPRESS_RECORD_KEY: ${{ secrets.TOP90_CYPRESS_RECORD_KEY }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: oven-sh/setup-bun@v1 - with: - bun-version: 1.0.0 - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - - name: Restore cached dependencies - id: dependency-restore - uses: actions/cache/restore@v3 - with: - path: node_modules/ - key: ${{ runner.os }}-node-modules-${{ hashFiles('bun.lockb') }} - - name: Start app - run: bun start & - - name: Restore Cypress cache - id: cypress-restore - uses: actions/cache/restore@v3 - with: - path: /home/runner/.cache/Cypress - key: ${{ runner.os }}-cypress-${{ hashFiles('bun.lockb') }} - - name: Install Cypress - run: bun cypress install - - name: Save Cypress cache - id: cypress-save - uses: actions/cache/save@v3 - with: - path: /home/runner/.cache/Cypress - key: ${{ runner.os }}-cypress-${{ hashFiles('bun.lockb') }} - - name: Run Cypress e2e with record - if: ${{ env.CYPRESS_RECORD_KEY }} - run: bun cypress run --e2e --record - - name: Run Cypress e2e - if: ${{ !env.CYPRESS_RECORD_KEY }} - run: bun cypress run --e2e deploy: name: Deploy - needs: [build, jest-tests, cypress-tests] + needs: [build, jest-tests] if: github.ref_name == 'master' runs-on: ubuntu-latest steps: