dotherightthing / wpdtrt-npm-scripts

NPM build scripts.
0 stars 0 forks source link

Cypress - chown: cannot access '/home/runner/.cache': No such file or directory #70

Open dotherightthing opened 2 years ago

dotherightthing commented 2 years ago

See https://github.com/dotherightthing/wpdtrt-plugin-boilerplate/actions/runs/3218085266/jobs/5261818641

dotherightthing commented 2 years ago

Do the steps need to be reversed?

    # Fix Cypress cannot write to the cache directory due to file permissions
    # https://github.com/cypress-io/cypress/issues/1281
    # TODO chown: cannot access '/home/runner/.cache': No such file or directory
    # - name: Grant Cypress permission to download to cache directory
    #   run: |
    #     sudo chown $USER $HOME/.cache

    # https://github.com/cypress-io/github-action#install-cypress-only
    - name: Cache dependencies
      uses: actions/cache@v3
      id: cache
      with:
        path: |
          ~/.cache
        key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
dotherightthing commented 2 years ago

See 45f905eaf268106e5773d992d7ffbdf4ac21b642