Skip to content

Commit 916e87c

Browse files
fixup! temp
1 parent 4e61386 commit 916e87c

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -283,45 +283,30 @@ jobs:
283283
hostname: ${{ matrix.hostname }}
284284
work_directory: ${{ matrix.host.work_directory }}
285285

286-
custom-shell:
286+
test-custom-shell:
287287
timeout-minutes: 5
288-
name: custom-shell
288+
name: Test multiple steps using custom shell
289289
runs-on: ubuntu-latest
290+
defaults:
291+
run:
292+
shell: cpa.sh {0}
290293

291294
steps:
292295
- name: Checkout
293296
uses: actions/checkout@v6
294297
with:
295298
persist-credentials: false
296299

297-
- name: Install dependencies
298-
run: |
299-
sudo apt-get update
300-
sudo apt-get install -y dosfstools rsync fdisk
301-
302300
- name: Start VM
303301
uses: ./
304302
with:
305303
operating_system: freebsd
306304
architecture: x86-64
307305
version: '13.2'
308-
hypervisor: qemu
309306
shutdown_vm: false
310-
run: true
311307

312308
- name: Run command using custom shell
313-
run: uname -a
314-
shell: cpa.sh {0}
315-
316-
- name: Tear down VM
317-
uses: ./
318-
with:
319-
operating_system: freebsd
320-
architecture: x86-64
321-
version: '13.2'
322-
hypervisor: qemu
323-
shutdown_vm: true
324-
run: true
309+
run: '[ "`uname`" = FreeBSD ]'
325310

326311
test-no-env:
327312
timeout-minutes: 5

0 commit comments

Comments
 (0)