Skip to content

Commit 0c868de

Browse files
ci(test): Add debug step on failure
1 parent 8acb962 commit 0c868de

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [ main ]
66

77
schedule:
8-
- cron: '44 08 * * *'
8+
- cron: '44 */2 * * *'
99

1010
workflow_dispatch:
1111
inputs:
@@ -68,9 +68,8 @@ jobs:
6868
mv ddev /usr/local/bin/ddev && chmod +x /usr/local/bin/ddev
6969
7070
- name: Download docker images
71-
run: |
72-
mkdir junk && pushd junk && ddev config --auto && ddev debug download-images >/dev/null
73-
docker pull memcached:1.6 >/dev/null
71+
run: ddev debug download-images >/dev/null
72+
7473
- name: tmate debugging session
7574
uses: mxschmitt/action-tmate@v3
7675
with:
@@ -81,6 +80,14 @@ jobs:
8180
- name: tests
8281
run: bats tests
8382

83+
- name: tmate debugging session on failure
84+
uses: mxschmitt/action-tmate@v3
85+
with:
86+
limit-access-to-actor: true
87+
github-token: ${{ secrets.GITHUB_TOKEN }}
88+
timeout-minutes: 90
89+
if: ${{ failure() }}
90+
8491
# keepalive-workflow adds a dummy commit if there's no other action here, keeps
8592
# GitHub from turning off tests after 60 days
8693
- uses: gautamkrishnar/keepalive-workflow@v1

0 commit comments

Comments
 (0)