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

"> Unexpected token ." #276

Open
gigamesh opened this issue Oct 12, 2022 · 0 comments
Open

"> Unexpected token ." #276

gigamesh opened this issue Oct 12, 2022 · 0 comments

Comments

@gigamesh
Copy link

gigamesh commented Oct 12, 2022

No matter which version I try, I'm getting this > Unexpected token . error in my tests. I've verified the chrome executable is downloaded. But only 'latest' is working. Any ideas?

image

Here are the relevant parts of my workflow file

name: End-to-end tests
on:
  pull_request:
    branches:
      - dev
  # Manual trigger on github
  workflow_dispatch:
  schedule:
    # Once per day at midnight
    - cron: '0 0 * * *'

env:
  NODE_OPTIONS: '--max_old_space_size=4096'

jobs:
  test-e2e:
    runs-on: ubuntu-latest

...

    steps:
      - name: Cancel Previous Runs
        uses: styfle/[email protected]
        with:
          access_token: ${{ github.token }}

      - name: Clone repository
        uses: actions/checkout@v2

      - name: Setup PNPM
        uses: pnpm/[email protected]
        with:
          version: latest

      - name: Setup Node v16
        uses: actions/setup-node@v2
        with:
          node-version: '16.x'
          cache: 'pnpm'

      - name: Install dependencies
        run: pnpm install

      - name: Cypress install
        run: pnpx cypress install --force

      - name: Chrome install
        uses: browser-actions/setup-chrome@latest
        with:
          chrome-version: '626474'

...

      - name: Cypress Run
        working-directory: services/webapp
        run: CHROME_PATH=$(which chrome) && pnpx cypress run --browser $CHROME_PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant