testing with --headed #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: IRCTC Booking | |
on: | |
# schedule: | |
# # “At minute 0 and 30 past every hour from 12 through 21.” | |
# - cron: '0,30 12-21 * * *' | |
push: | |
branches: | |
- 'feature/*' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
IRCTC-Booking: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
- run: | | |
pip install -r irctc-captcha-solver/requirements.txt | |
- name: Install Node.js and npm | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21.7.1' | |
- name: Running IRCTC Cypress Script | |
uses: cypress-io/github-action@v6 | |
# continue-on-error: true | |
with: | |
browser: chrome | |
command: npx cypress run --headed --record --key 967b25a7-e4dd-4b5b-a143-d799131b2d3b --browser chrome --env USERNAME=${{secrets.USERNAME}},PASSWORD=${{secrets.PASSWORD}} | |