Skip to content

Commit

Permalink
ci: run browser tests in chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
dezhidki committed Oct 2, 2024
1 parent dfe3d1d commit 6471f71
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
skip_after_successful_duplicate: 'true'

ci_tests:
name: CI tests (${{ matrix.test_module }})
name: CI tests (${{ matrix.test_module }}${{ matrix.chunk && format(' {0}', matrix.chunk) || '' }})
runs-on: ubuntu-latest

needs: skip_check
Expand All @@ -24,10 +24,14 @@ jobs:
strategy:
matrix:
test_module:
- browser
- unit
- db
- server
include:
- test_module: browser
chunk: "1/2"
- test_module: browser
chunk: "2/2"
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -73,13 +77,13 @@ jobs:
- name: Install TIM Rust library
run: ./tim rust
- name: Run tests
run: ./tim test --dc-up ${{ matrix.test_module }}
run: ./tim test --dc-up --chunk=${{ matrix.chunk || '' }} ${{ matrix.test_module }}
timeout-minutes: 40
env:
SKIP_JSRUNNER_START: ${{ matrix.test_module == 'unit' || matrix.test_module == 'db' }}
- name: Upload screenshots
if: "${{ matrix.test_module == 'browser' && always() }}"
uses: actions/[email protected]
with:
name: Browser Screenshots
name: Browser Screenshots${{ matrix.chunk && format(' (chunk {0})', matrix.chunk) || '' }}
path: screenshots

0 comments on commit 6471f71

Please sign in to comment.