From 6471f713e4a3bbf58ba47faab5337f2b475cc291 Mon Sep 17 00:00:00 2001 From: dezhidki Date: Wed, 2 Oct 2024 10:32:13 +0300 Subject: [PATCH] ci: run browser tests in chunks --- .github/workflows/tests.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 726cda2a53..787ebd20bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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: @@ -73,7 +77,7 @@ 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' }} @@ -81,5 +85,5 @@ jobs: if: "${{ matrix.test_module == 'browser' && always() }}" uses: actions/upload-artifact@v3.0.0 with: - name: Browser Screenshots + name: Browser Screenshots${{ matrix.chunk && format(' (chunk {0})', matrix.chunk) || '' }} path: screenshots \ No newline at end of file