Skip to content

Commit

Permalink
Use retry logic for tests exucution in Main CI pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek committed Oct 18, 2023
1 parent 67f9689 commit 4eeb0d3
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,36 @@ jobs:
cache: npm

- name: Run Tests (macOS, windows)
uses: Wandalen/wretry.action@master
if: matrix.os != 'ubuntu-latest'
run: |
npm run test
with:
attempt_delay: 10000
attempt_limit: 2
command: npm run test

- name: Run Tests (linux)
uses: Wandalen/wretry.action@master
if: matrix.os == 'ubuntu-latest'
run: |
xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm run test
with:
attempt_delay: 10000
attempt_limit: 2
command: xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm run test

# - name: Run Tests (macOS, windows)
# uses: nick-fields/retry@v2
# if: matrix.os != 'ubuntu-latest'
# with:
# timeout_minutes: 20
# max_attempts: 2
# command: npm run test

# - name: Run Tests (linux)
# uses: nick-fields/retry@v2
# if: matrix.os == 'ubuntu-latest'
# with:
# timeout_minutes: 20
# max_attempts: 2
# command: xvfb-run --auto-servernum --server-args='-screen 0 1920x1080x24' npm run test

- name: Upload Screenshots
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 4eeb0d3

Please sign in to comment.