cypress-io / circleci-orb

Install, cache and run Cypress.io tests on CircleCI with minimal configuration.
https://circleci.com/orbs/registry/orb/cypress-io/cypress
MIT License
161 stars 101 forks source link

How can I fix tofu font? #200

Closed yousan closed 4 years ago

yousan commented 5 years ago

The orb does not work as expected

image

  cypressrun: # E2E
    docker:
      - image: cypress/base:10
    parallelism: 1
    steps:
      - checkout
      - restore_cache:
          keys:
            - cache-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
      - run:
          name: Check if package-lock.json exists
          command: |
            if [ ! -e ./package-lock.json ]; then
              echo "The Cypress orb uses 'npm ci' to install 'node_modules', which requires a 'package-lock.json'."
              echo "A 'package-lock.json' file was not found. Please run 'npm install' in your project,"
              echo "and commit 'package-lock.json' to your repo."
              exit 1
            fi
          working_directory: ''
      - run:
          name: Npm CI
          command: npm ci
          working_directory: ''
      - run:
          name: Verify Cypress
          command: npx cypress verify
          working_directory: ''
      - save_cache:
          key: cache-{{ arch }}-{{ .Branch }}-{{ checksum "package.json" }}
          paths:
            - ~/.npm
            - ~/.cache
      - run:
          command: ./bin/cypress.sh
          working_directory: ''
      - store_artifacts:
          path: cypress/videos
      - store_artifacts:
          path: cypress/screenshots
      - store_test_results:
          path: cypress/results
bahmutov commented 4 years ago

Use a Docker image with more fonts installed, like one of the Docker images from https://github.com/cypress-io/cypress-docker-images/tree/master/base