Skip to content

Commit

Permalink
added step to get tags using cypress grep
Browse files Browse the repository at this point in the history
  • Loading branch information
sharanya-appsmith committed Dec 12, 2023
1 parent 2550856 commit fa900bf
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci-test-custom-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,19 @@ jobs:
fi
fi
- name: Set cypress tags to exclude - new steps
if: steps.run_result.outputs.run_result != 'success'
run: |
if [[ "${{ inputs.airgap-enabled }}" == "true" ]] && [[ -n "${{ inputs.tags }}" ]]; then
echo "CYPRESS_grepTags=${{ inputs.tags }}[email protected]" >> $GITHUB_ENV
elif [[ "${{ inputs.airgap-enabled }}" == "false" ]] && [[ -n "${{ inputs.tags }}" ]]; then
echo "CYPRESS_grepTags=${{ inputs.tags }}[email protected]" >> $GITHUB_ENV
elif [[ -z "${{ inputs.tags }}" ]]; then
echo "[email protected]" >> $GITHUB_ENV
fi
- name: Echo grepTags
run: echo $CYPRESS_grepTags

- name: Run the cypress test
uses: cypress-io/github-action@v6
env:
Expand Down Expand Up @@ -362,7 +375,6 @@ jobs:
CYPRESS_APPSMITH_OAUTH2_OIDC_JWKS_URL: ${{ secrets.CYPRESS_APPSMITH_OAUTH2_OIDC_JWKS_URL }}
CYPRESS_APPSMITH_OAUTH2_OIDC_OKTA_PASSWORD: ${{ secrets.CYPRESS_APPSMITH_OAUTH2_OIDC_OKTA_PASSWORD }}
CYPRESS_APPSMITH_OAUTH2_OIDC_DIRECT_URL: ${{ secrets.CYPRESS_APPSMITH_OAUTH2_OIDC_DIRECT_URL }}
CYPRESS_EXCLUDE_TAGS: "airgap"
CYPRESS_AIRGAPPED: false
APPSMITH_DISABLE_TELEMETRY: true
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
Expand All @@ -383,7 +395,7 @@ jobs:
CYPRESS_DB_PWD: ${{ secrets.CYPRESS_DB_PWD }}
CYPRESS_S3_ACCESS: ${{ secrets.CYPRESS_S3_ACCESS }}
CYPRESS_S3_SECRET: ${{ secrets.CYPRESS_S3_SECRET }}
CYPRESS_grepTags: ${{ inputs.tags }} # This is a comma separated list of tags to run a subset of the suite
CYPRESS_grepTags: ${{ env.CYPRESS_grepTags }} # This is a comma separated list of tags to run a subset of the suite
CYPRESS_SKIP_FLAKY: true
DEBUG: ${{secrets.CYPRESS_GREP_DEBUG }} # This is derived from secrets so that we can toggle it without having to change any workflow. Only acceptable value is: @cypress/grep
with:
Expand Down

0 comments on commit fa900bf

Please sign in to comment.