Skip to content

Commit 8f4c181

Browse files
committed
experiment: parallel running tests
1 parent dab9f5e commit 8f4c181

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

.github/workflows/unit-test.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,33 @@ jobs:
2020
with:
2121
run-for: PR
2222

23-
runner-indexes:
24-
runs-on: ubuntu-latest
25-
name: Generate runner indexes
26-
needs: dependency-branches
27-
outputs:
28-
json: ${{ steps.generate-index-list.outputs.json }}
29-
steps:
30-
- id: generate-index-list
31-
run: |
32-
MAX_INDEX=$((${{ env.total-runners }}-1))
33-
INDEX_LIST=$(seq 0 ${MAX_INDEX})
34-
INDEX_JSON=$(jq --null-input --compact-output '. |= [inputs]' <<< ${INDEX_LIST})
35-
echo "::set-output name=json::${INDEX_JSON}"
23+
runner-indexes:
24+
runs-on: ubuntu-latest
25+
name: Generate runner indexes
26+
needs: dependency-branches
27+
outputs:
28+
json: ${{ steps.generate-index-list.outputs.json }}
29+
steps:
30+
- id: generate-index-list
31+
run: |
32+
MAX_INDEX=$((${{ env.total-runners }}-1))
33+
INDEX_LIST=$(seq 0 ${MAX_INDEX})
34+
INDEX_JSON=$(jq --null-input --compact-output '. |= [inputs]' <<< ${INDEX_LIST})
35+
echo "::set-output name=json::${INDEX_JSON}"
3636
37-
run-parallel-tests:
38-
runs-on: ubuntu-latest
39-
name: "Runner #${{ matrix.runner-index }}: Run test suite in parallel"
40-
needs:
41-
- runner-indexes
42-
strategy:
43-
fail-fast: false
44-
matrix:
45-
runner-index: ${{ fromjson(needs.runner-indexes.outputs.json) }}
46-
plugin:
47-
- sqlite
48-
- postgresql
49-
steps:
37+
run-parallel-tests:
38+
runs-on: ubuntu-latest
39+
name: "Runner #${{ matrix.runner-index }}: Run test suite in parallel"
40+
needs:
41+
- runner-indexes
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
runner-index: ${{ fromjson(needs.runner-indexes.outputs.json) }}
46+
plugin:
47+
- sqlite
48+
- postgresql
49+
steps:
5050
- steps:
5151
- name: Set up JDK 15.0.1
5252
uses: actions/setup-java@v2

0 commit comments

Comments
 (0)