@@ -75,10 +75,31 @@ jobs:
7575 echo "os: ubuntu" >goss_vars_${GH_RUNNER_IMAGE}.yaml
7676 echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
7777 echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
78+ # test the edge case from deregistration on reusable runners
79+ GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
80+ -e DEBUG_ONLY=true \
81+ -e ACCESS_TOKEN=notreal \
82+ -e LABELS=linux,x64 \
83+ -e REPO_URL=https://github.com/octokode/test1 \
84+ -e RUNNER_NAME=sustainjane-runner-1 \
85+ -e RUNNER_SCOPE=repo \
86+ -e RUNNER_WORKDIR=/tmp/runner/work \
87+ -e DISABLE_AUTOMATIC_DEREGISTRATION=false \
88+ -e CONFIGURED_ACTIONS_RUNNER_FILES_DIR=/runner/data \
89+ ${GH_RUNNER_IMAGE} 10
90+ if [ $? -ne 0 ]; then
91+ exit 1
92+ fi
7893 # test the base
7994 GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
95+ if [ $? -ne 0 ]; then
96+ exit 1
97+ fi
8098 # test the final image but with all defaults
8199 GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full_defaults.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
100+ if [ $? -ne 0 ]; then
101+ exit 1
102+ fi
82103 # test the final image but with non-default values
83104 GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_full.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
84105 -e DEBUG_ONLY=true \
@@ -102,6 +123,9 @@ jobs:
102123 -e EPHEMERAL=true \
103124 -e DISABLE_AUTO_UPDATE=true \
104125 ${GH_RUNNER_IMAGE} 10
126+ if [ $? -ne 0 ]; then
127+ exit 1
128+ fi
105129
106130 debian_tests :
107131 runs-on : ubuntu-latest
@@ -163,6 +187,21 @@ jobs:
163187 echo "os: debian" >goss_vars_${GH_RUNNER_IMAGE}.yaml
164188 echo "oscodename: ${{ matrix.release }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
165189 echo "arch: ${{ matrix.platform }}" >>goss_vars_${GH_RUNNER_IMAGE}.yaml
190+ # test the edge case from deregistration on reusable runners
191+ GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_reusage_fail.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep \
192+ -e DEBUG_ONLY=true \
193+ -e ACCESS_TOKEN=notreal \
194+ -e LABELS=linux,x64 \
195+ -e REPO_URL=https://github.com/octokode/test1 \
196+ -e RUNNER_NAME=sustainjane-runner-1 \
197+ -e RUNNER_SCOPE=repo \
198+ -e RUNNER_WORKDIR=/tmp/runner/work \
199+ -e DISABLE_AUTOMATIC_DEREGISTRATION=false \
200+ -e CONFIGURED_ACTIONS_RUNNER_FILES_DIR=/runner/data \
201+ ${GH_RUNNER_IMAGE} 10
202+ if [ $? -ne 0 ]; then
203+ exit 1
204+ fi
166205 # test the base
167206 GOSS_VARS=goss_vars_${GH_RUNNER_IMAGE}.yaml GOSS_FILE=goss_base.yaml GOSS_SLEEP=1 dgoss run --entrypoint /usr/bin/sleep -e RUNNER_NAME=test -e DEBUG_ONLY=true ${GH_RUNNER_IMAGE} 10
168207 # test the final image but with all defaults
0 commit comments