File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,16 +23,14 @@ jobs:
2323 steps :
2424 - name : 🧐 Determine Job to Run
2525 id : set-vars
26- shell : bash
26+ env :
27+ PR_TITLE : ${{ github.event.pull_request.title }}
2728 run : |
28- PR_TITLE="${{ github.event.pull_request.title }}"
29- UNIT_TEST_REGEX='(@typescript-eslint|vitest|eslint|@types|@tsconfig|ts-node|jsdom|typescript)'
30- WEB_TEST_REGEX='(@wdio(?!\/appium-service)|copyfiles|rimraf|saucelabs|lambdatest|webdriverio)'
31- if [[ $PR_TITLE =~ $UNIT_TEST_REGEX ]]; then
32- echo "::set-output name=run_unit_tests::true"
33- fi
34- if [[ $PR_TITLE =~ $WEB_TEST_REGEX ]]; then
35- echo "::set-output name=run_web_tests::true"
29+ echo "$PR_TITLE" | grep -qE '@typescript-eslint|vitest|eslint|@types|@tsconfig|ts-node|jsdom|typescript' && echo "run_unit_tests=true" >> "$GITHUB_OUTPUT"
30+ if echo "$PR_TITLE" | grep -qE 'copyfiles|rimraf|saucelabs|lambdatest|webdriverio'; then
31+ echo "run_web_tests=true" >> "$GITHUB_OUTPUT"
32+ elif echo "$PR_TITLE" | grep -q '@wdio/' && ! echo "$PR_TITLE" | grep -q '@wdio/appium-service'; then
33+ echo "run_web_tests=true" >> "$GITHUB_OUTPUT"
3634 fi
3735
3836 ci-dependency-unit-test :
You can’t perform that action at this time.
0 commit comments