Skip to content

Commit

Permalink
Update cypress-ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nimya-aot authored May 24, 2024
1 parent 67be59c commit a2b6cb0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cypress-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
cypress-run:
runs-on: ubuntu-22.04
outputs:
PR_FINAL: ${{ steps.vars.outputs.PR_FINAL }}
PR_FINAL: ${{ steps.vars.outputs.PR_FINAL }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -26,8 +26,9 @@ jobs:
path: "tests/functional"
key: node-modules-${{ hashFiles('tests/functional/package.json') }}


- name: Set variables
id: vars
env:
PR_NUMBER: ${{ github.event.inputs.pr-number }}

Expand All @@ -43,19 +44,20 @@ jobs:
fi
- name: cypress install
uses: cypress-io/github-action@v6
with:

working-directory: '${{ github.workspace }}/tests/functional'
pr_final: ${{ steps.vars.PR_FINAL }}



env:
CYPRESS_keycloakUsername: ${{secrets.keycloakUsername}}
CYPRESS_keycloakPassword: ${{secrets.keycloakPassword}}
CYPRESS_depEnv: $PR_FINAL >> "$GITHUB_OUTPUT"
CYPRESS_depEnv: ${{ steps.vars.PR_FINAL }}


- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a2b6cb0

Please sign in to comment.