Skip to content

Error: The process '/usr/bin/yarn' failed with exit code 1 #797

@madeeha96

Description

@madeeha96

Facing: Error: The process '/usr/bin/yarn' failed with exit code 1
on following work flow

name: Cypress Tests

on: [push]

jobs:
  test:
    name: Cypress E2E 🧪
    runs-on: [self-hosted, default]
    strategy:
      fail-fast: false # https://github.com/cypress-io/github-action/issues/48
      matrix:
        containers: [1, 2] # Uses 2 parallel instances
    timeout-minutes: 15
    steps:
      - name: Checkout source code
        uses: actions/checkout@v3
      # Install NPM dependencies, cache them correctly
      # and run all Cypress tests
      - name: Cypress run
        uses: cypress-io/github-action@v5
        with:
          build: npm run build
          start: npm start
          working-directory: ./applications/cui-webapp/app

Please guide. Tried checking Yarn check (what yarn) action before cypress run. It returns legit yarn path /usr/local/bin/yarn
What can be the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions