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

Add cypress tests to GH Actions for Permissioned App #61

Open
jessgusclark opened this issue Apr 12, 2022 · 1 comment
Open

Add cypress tests to GH Actions for Permissioned App #61

jessgusclark opened this issue Apr 12, 2022 · 1 comment

Comments

@jessgusclark
Copy link
Member

#60 adds github actions for the sample dapp but not the permissioned app. I think we need to move the Cypress tests into the /permissioned-app folder and not in the front-end folder. Because of this, I think it would be best to do this in a different PR as not to clutter the code differences.

@jessgusclark
Copy link
Member Author

jessgusclark commented Apr 12, 2022

This is as far as I got:

name: Cypress Tests - Permissioned App

on:
  pull_request

jobs:
  cypress-run:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Install Dependencies and Start
        run: |
          yarn
          yarn start:ci
        working-directory: permissioned-app

      - name: Cypress run
        uses: cypress-io/github-action@v2
        with:
          working-directory: permissioned-app/frontend-app
          record: false
          wait-on-timeout: 120
          wait-on: 'http://localhost:3000'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This results in the runner stalling:

2022-04-12T14:17:47.7549873Z Requested labels: ubuntu-latest
2022-04-12T14:17:47.7549918Z Job defined at: rsksmart/rLogin-sample-apps/.github/workflows/cypress-permissioned.yml@refs/pull/60/merge
2022-04-12T14:17:47.7549944Z Waiting for a runner to pick up this job...
2022-04-12T14:17:48.5783497Z Job is waiting for a hosted runner to come online.
2022-04-12T14:17:57.3705805Z Job is about to start running on the hosted runner: GitHub Actions 4 (hosted)

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

No branches or pull requests

1 participant