Skip to content

Commit

Permalink
fixes running Cypress in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Feb 26, 2025
1 parent 577044f commit 5e0fd2e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/testing-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
testing-client:
name: Running client tests
runs-on: ubuntu-22.04
container:
image: cypress/base:22.14.0
timeout-minutes: 30
if: ${{ github.ref_name != 'test' }}
strategy:
Expand Down Expand Up @@ -44,21 +46,17 @@ jobs:
${{ runner.os }}-node_modules-
- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Cypress run
uses: cypress-io/github-action@v5
uses: cypress-io/github-action@v6
with:
record: true
working-directory: client
install: false
build: pnpm build
start: pnpm start
browser: chrome
wait-on: http://localhost:3000/auth/signin
config-file: cypress.config.ts
command-prefix: pnpm dlx
command: "pnpm test:e2e"
env:
NEXT_PUBLIC_API_URL: ${{ secrets.CYPRESS_API_URL }}
NEXT_TELEMETRY_DISABLED: 1
Expand All @@ -70,6 +68,7 @@ jobs:
# pass GitHub token to detect new build vs re-run build
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
DEBUG: "cypress:server:args"
CYPRESS_INSTALL_BINARY: 0

- uses: actions/upload-artifact@v4
if: failure()
Expand Down

0 comments on commit 5e0fd2e

Please sign in to comment.