Skip to content

Commit 65dc808

Browse files
committed
matrix
1 parent daea349 commit 65dc808

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test_dt.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on: [push, pull_request]
44
jobs:
55
deploy:
66
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
job_position: [1, 2, 3, 4, 5, 6]
710

811
steps:
912
- uses: actions/checkout@v2
@@ -28,7 +31,7 @@ jobs:
2831
cp $GITHUB_WORKSPACE/generated/webworker.iterable.generated.d.ts node_modules/typescript/lib/lib.webworker.iterable.d.ts
2932
3033
echo "Branch run - Shard $SYSTEM_JOBPOSITIONINPHASE of $SYSTEM_TOTALJOBSINPHASE"
31-
yarn dtslint-runner --clone --localTypeScriptPath node_modules/typescript/lib --selection all --expectOnly --shardId $SYSTEM_JOBPOSITIONINPHASE --shardCount $SYSTEM_TOTALJOBSINPHASE
34+
yarn dtslint-runner --clone --localTypeScriptPath node_modules/typescript/lib --selection all --expectOnly --shardId $SYSTEM_JOBPOSITIONINPHASE --shardCount $SYSTEM_TOTALJOBSINPHASE 2>nightlyErrors.txt
3235
branchRunResult=$
3336
3437
echo
@@ -41,6 +44,6 @@ jobs:
4144
4245
exit $branchRunResult
4346
env:
44-
SYSTEM_JOBPOSITIONINPHASE: "1"
47+
SYSTEM_JOBPOSITIONINPHASE: ${{ matrix.node }}
4548
SYSTEM_TOTALJOBSINPHASE: "6"
4649

0 commit comments

Comments
 (0)