Skip to content

Commit a38d254

Browse files
committed
Add a GitHub workflow to manually test the detached mode
To better assess how useful the detached mode is, and whether it handles all of the corner cases correctly (client connects only during the post job phase, job is canceled while waiting for the session to end, etc), let's have a GitHub workflow that can be triggered manually. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 192e289 commit a38d254

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Test detached mode
2+
on: workflow_dispatch
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: ./
10+
with:
11+
limit-access-to-actor: true
12+
detached: true
13+
- run: |
14+
echo "A busy loop"
15+
for value in $(seq 10)
16+
do
17+
echo "Value: $value"
18+
echo "value $value" >>counter.txt
19+
sleep 1
20+
done

0 commit comments

Comments
 (0)