Skip to content

Commit

Permalink
Merge pull request #4 from plewkowycz/pl/fixing-cypress-workflow
Browse files Browse the repository at this point in the history
Adding fix to add run application in workflow
  • Loading branch information
plewkowycz authored Mar 11, 2023
2 parents ca92a41 + 0b3ea1a commit 579997e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cypress Tests with installation job
name: Cypress Tests

on:
push:
Expand All @@ -7,9 +7,12 @@ on:
branches: ['master']

jobs:
install:
running_cypress:
name: Running cypress tests
runs-on: ubuntu-latest
container: cypress/browsers:node12.18.3-chrome87-ff82
container:
image: cypress/browsers:node16.5.0-chrome94-ff93
options: --user 1001
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -19,9 +22,12 @@ jobs:
node-version: 16.14.0
- name: Install yarn dependecies
run: yarn
- name: Run application
run: yarn start &
- name: Cypress run
uses: cypress-io/github-action@v5
with:
start: yarn start
browser: chrome
wait-on: 'http://localhost:3000/'
wait-on-timeout: 300
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ yarn-error.log
#cypress
cypress/screenshots
cypress/videos
cypress/downloads

0 comments on commit 579997e

Please sign in to comment.