Skip to content

Commit

Permalink
removing cypress actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamguys committed Apr 21, 2024
1 parent 7063f18 commit 32dfb79
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/irctc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
type: string
description: "Your IRCTC Password"
UPI_ID:
required: false
required: true
type: string
description: "Your UPI ID To Make Payment From"
jobs:
Expand Down Expand Up @@ -50,8 +50,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.12.2'

- name: Installing Cypress & Running IRCTC Cypress Automation
run: |
npm install cypress
npx cypress run --record --key a15b31a6-b9ee-4678-b9ac-f45a190851fe --env UPI_ID=${{ inputs.UPI_ID || '' }},USERNAME=${{ inputs.USERNAME || secrets.USERNAME }},PASSWORD=${{ inputs.PASSWORD || secrets.PASSWORD }}
- name: Running IRCTC Cypress Script
uses: cypress-io/github-action@v6
with:
command: npx cypress open --browser chrome --env UPI_ID=${{ inputs.UPI_ID || '' }},USERNAME=${{ inputs.USERNAME || secrets.USERNAME }},PASSWORD=${{ inputs.PASSWORD || secrets.PASSWORD }}
# - name: Running IRCTC Cypress Script
# uses: cypress-io/github-action@v6
# with:
# command: npx cypress run --record --key a15b31a6-b9ee-4678-b9ac-f45a190851fe --env UPI_ID=${{ inputs.UPI_ID || '' }},USERNAME=${{ inputs.USERNAME || secrets.USERNAME }},PASSWORD=${{ inputs.PASSWORD || secrets.PASSWORD }}

0 comments on commit 32dfb79

Please sign in to comment.