Skip to content

Commit 65bd41f

Browse files
Decrease sleep duration in Expensive Test job (#4)
1 parent fcac23b commit 65bd41f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/merge-queue-demo.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ on:
55
pull_request:
66
branches: [main]
77
merge_group:
8-
branches: [main]
98

109
jobs:
1110
unit-test:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
1514
- name: Run Unit Test
16-
run: ./scripts/test.sh fail
15+
run: ./scripts/test.sh
1716

1817
# Scenario: Job that only runs in the Merge Queue (e.g., expensive integration tests)
1918
merge-queue-exclusive:
@@ -22,7 +21,7 @@ jobs:
2221
steps:
2322
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
2423
- name: Run Expensive Test
25-
run: ./scripts/test.sh sleep 10
24+
run: ./scripts/test.sh sleep 2
2625

2726
# Scenario: Job that only runs on PRs (e.g., quick linting, or checks not needed for merge)
2827
pr-exclusive:
@@ -47,7 +46,7 @@ jobs:
4746
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
4847
- name: Run Flaky Test
4948
# Change 'pass' to 'flaky' to simulate flakiness
50-
run: ./scripts/test.sh flaky
49+
run: ./scripts/test.sh pass
5150

5251
# Scenario: Semantic Conflict Simulation
5352
# This job checks a version file. If two PRs change it incompatibly, this fails.

0 commit comments

Comments
 (0)