From 36f33ab02c35f22a887c067d2d1cd52532a5a0b4 Mon Sep 17 00:00:00 2001 From: yvt Date: Tue, 20 Jul 2021 00:21:23 +0900 Subject: [PATCH] chore(ci): move `jobs..{strategy.matrix -> env}.max_chunk_id` --- .github/workflows/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f86f88a0859..9d00a535549 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -126,9 +126,10 @@ jobs: # mac-wpt: # #needs: build-mac # runs-on: macos-10.15 + # env: + # max_chunk_id: 20 # strategy: # matrix: - # max_chunk_id: [20] # chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] # steps: # - uses: actions/checkout@v2 @@ -157,7 +158,7 @@ jobs: # run: | # python3 ./mach test-wpt \ # --release --processes=3 --timeout-multiplier=8 \ - # --total-chunks=${{ matrix.max_chunk_id }} --this-chunk=${{ matrix.chunk_id }} \ + # --total-chunks=${{ env.max_chunk_id }} --this-chunk=${{ matrix.chunk_id }} \ # --log-raw=test-wpt.log \ # --log-servojson=wpt-jsonsummary.log \ # --always-succeed | cat @@ -206,9 +207,10 @@ jobs: name: Linux WPT Tests runs-on: ubuntu-20.04 needs: ["build-linux"] + env: + max_chunk_id: 20 strategy: matrix: - max_chunk_id: [20] chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] steps: - uses: actions/checkout@v2 @@ -232,7 +234,7 @@ jobs: run: | python3 ./mach test-wpt \ --release --processes $(nproc) --timeout-multiplier 2 \ - --total-chunks ${{ matrix.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \ + --total-chunks ${{ env.max_chunk_id }} --this-chunk ${{ matrix.chunk_id }} \ --log-raw test-wpt.${{ matrix.chunk_id }}.log \ --log-servojson wpt-jsonsummary.${{ matrix.chunk_id }}.log \ --always-succeed