Skip to content

Commit fd92f4d

Browse files
committed
Test parallel steps
1 parent 9f8aee9 commit fd92f4d

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,36 @@ jobs:
310310
- env:
311311
FOO: ${{ matrix.foo }}
312312
run: echo "$FOO" | xxd -g 1
313+
314+
parallel:
315+
name: Parallel steps
316+
runs-on: ubuntu-latest
317+
steps:
318+
- name: Non-parallel
319+
run: &counter |
320+
i=0
321+
while [[ $SECONDS -lt 20 ]]; do
322+
echo $((++i))
323+
done
324+
325+
- parallel:
326+
- name: V1
327+
run: *counter
328+
- name: V2
329+
run: *counter
330+
- name: V3
331+
run: *counter
332+
- name: V4
333+
run: *counter
334+
- name: V5
335+
run: *counter
336+
- name: V6
337+
run: *counter
338+
- name: V7
339+
run: *counter
340+
- name: V8
341+
run: *counter
342+
- name: V9
343+
run: *counter
344+
- name: V10
345+
run: *counter

0 commit comments

Comments
 (0)