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: Cypress 12 experimental tests | |
on: | |
push: | |
branches: ['**'] | |
pull_request: | |
branches: ['**'] | |
paths-ignore: | |
- '**/*.md' | |
- 'docs/**' | |
- '.lycheeignore' | |
- 'CODEOWNERS' | |
- 'changelogs/fragments/**' | |
env: | |
CYPRESS_BROWSER: 'chromium' | |
CYPRESS_VISBUILDER_ENABLED: true | |
CYPRESS_DATASOURCE_MANAGEMENT_ENABLED: false | |
OSD_SNAPSHOT_SKIP_VERIFY_CHECKSUM: true | |
NODE_OPTIONS: '--max-old-space-size=6144 --dns-result-order=ipv4first' | |
COMMENT_TAG: '[MANUAL CYPRESS TEST RUN RESULTS]' | |
COMMENT_SUCCESS_MSG: ':white_check_mark: Cypress test run succeeded!' | |
COMMENT_FAILURE_MSG: ':x: Cypress test run failed!' | |
LATEST_VERSION: '3.0.0' | |
COVERAGE: true | |
COMBINATIONS: | | |
[ | |
["SECURITY"], | |
["WORKSPACE"], | |
["DATA_SOURCE"], | |
["SECURITY", "WORKSPACE"], | |
["SECURITY", "DATA_SOURCE"], | |
["WORKSPACE", "DATA_SOURCE"], | |
["SECURITY", "WORKSPACE", "DATA_SOURCE"], | |
["FEATURE_FLAG"] | |
] | |
jobs: | |
trigger-cypress-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Trigger tests for combinations | |
run: | | |
echo "$COMBINATIONS" | jq -c '.[]' | while read -r combo; do | |
echo "Triggering tests for $folder_name with combination: $combo" | |
inputs="" | |
echo $combo | jq -r '.[]' | while read -r var; do | |
inputs="$inputs -f $var=true" | |
done | |
echo "Inputs for workflow dispatch: $inputs" | |
done |