Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off cypress tests for now #110

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 1 addition & 43 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading