Skip to content

Commit

Permalink
Update (base update)
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
poteto committed Jun 22, 2024
1 parent ec0f516 commit 25088c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/runtime_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
runs-on: ubuntu-latest
outputs:
params: ${{ steps.define-params.outputs.result }}
shard_id: ${{ steps.define-chunks.outputs.result }}
shard_id: ${{ steps.define-shards.outputs.result }}
steps:
- uses: actions/github-script@v7
id: define-chunks
id: define-shards
with:
script: |
function range(from, to) {
const arr = [];
for (let n = from; n < to; n++) {
for (let n = from; n <= to; n++) {
arr.push(n);
}
return arr;
}
return range(0, process.env.SHARD_COUNT);
return range(1, process.env.SHARD_COUNT);
- uses: actions/github-script@v7
id: define-params
with:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
# Spawn a job for each shard for a given set of test params
test:
name: yarn test ${{ matrix.params }} (Chunk ${{ matrix.shard_id }})
name: yarn test ${{ matrix.params }} (Shard ${{ matrix.shard_id }})
runs-on: ubuntu-latest
needs: build_test_params
strategy:
Expand Down

0 comments on commit 25088c7

Please sign in to comment.