Skip to content

Commit

Permalink
Try this method
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Nov 8, 2024
1 parent b417d7f commit 3c657cb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/e2e-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
submodules: 'recursive'

- name: Print vars
if: ${{ github.event_name == 'push' && contains(env.SKIP_BACK_COMPAT_TEST_BRANCHES, github.head_ref) }}
shell: bash
run: |
echo $GITHUB_HEAD_REF
Expand Down Expand Up @@ -88,14 +89,10 @@ jobs:

- name: Run Backwards Compatibility test
uses: nick-fields/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2.9.0
if: ${{ github.event_name == 'push' && contains(env.SKIP_BACK_COMPAT_TEST_BRANCHES, github.head_ref) }}
with:
timeout_minutes: 15
max_attempts: 3
command: |
if [[ " ${SKIP_BACK_COMPAT_TEST_BRANCHES[@]} " =~ " ${GITHUB_HEAD_REF} " ]]; then
echo "Skipping backwards compatibility test for branch $GITHUB_HEAD_REF"
exit 0
else
echo "Running backwards compatibility test for branch $GITHUB_HEAD_REF"
cd packages/e2e-tests && npm run test backwardsCompatibility.test.ts
fi
echo "Running backwards compatibility test for branch $GITHUB_HEAD_REF"
cd packages/e2e-tests && npm run test backwardsCompatibility.test.ts

0 comments on commit 3c657cb

Please sign in to comment.