Skip to content

Commit 5cbaf03

Browse files
author
Donovan Sydow
committed
add a timeout test
1 parent 3711133 commit 5cbaf03

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,25 @@ jobs:
2828
preemptible: true
2929
actions_preinstalled: false
3030
no_external_address: true
31+
shutdown_timeout: 30
3132

32-
test:
33+
test1:
3334
needs: create-runner
3435
runs-on: ${{ needs.create-runner.outputs.label }}
3536
steps:
36-
- run: echo "This runs on the GCE runner VM"
37+
- name: Job 1 Test
38+
run: echo "This runs on the GCE runner VM"
39+
40+
test2:
41+
needs: create-runner
42+
runs-on: ${{ needs.create-runner.outputs.label }}
43+
steps:
44+
- name: Wait for longer than shutdown timeout
45+
run: sleep 60 #Give time for runner to shutdown from shutdown timeout
46+
47+
- name: Job 2 Test
48+
run: echo "This also runs on the GCE runner VM"
3749
- uses: iunu/gce-github-runner@iunu
3850
with:
3951
command: stop
40-
if: always()
52+
if: always()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
project_id: ${{ secrets.GCP_PROJECT_ID }}
2222
service_account_key: ${{ secrets.GCP_SA_KEY }}
2323
image_project: ubuntu-os-cloud
24-
image_family: ubuntu-2404-lts
24+
image_family: ubuntu-2404-lts-amd64
2525

2626
test:
2727
needs: create-runner

0 commit comments

Comments
 (0)