Skip to content

Commit

Permalink
Don't shutdown VM in CI workflows to speed up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-carlborg committed Dec 1, 2023
1 parent 66e0854 commit 8248f59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ jobs:
operating_system: freebsd
architecture: x86-64
version: '13.0'
shutdown_vm: false
run: env | sort

test-cpu-count-config:
Expand All @@ -190,6 +191,7 @@ jobs:
architecture: x86-64
version: '13.1'
cpu_count: 8
shutdown_vm: false
run: |
sysctl hw.ncpu
[ `sysctl -n hw.ncpu` = 8 ]
Expand Down Expand Up @@ -236,6 +238,7 @@ jobs:
architecture: x86-64
version: '7.3'
image_url: https://github.com/cross-platform-actions/test-custom-image-builder/releases/download/v1.0.0/openbsd-7.3-x86-64.qcow2
shutdown_vm: false
run: test -f /foo

test-cpu-features:
Expand All @@ -256,6 +259,7 @@ jobs:
architecture: x86-64
version: '13.2'
hypervisor: qemu
shutdown_vm: false
run: dmesg | grep -i avx2

test-no-vm-shutdown:
Expand Down Expand Up @@ -345,6 +349,7 @@ jobs:
architecture: x86-64
version: '13.2'
sync_files: ${{ matrix.data.direction }}
shutdown_vm: false
run: ${{ matrix.data.run }}

- name: Run after
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/support/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ runs:
operating_system: ${{ inputs.name }}
architecture: ${{ inputs.architecture }}
version: '${{ inputs.version }}'
shutdown_vm: false
run: |
uname -a
echo $SHELL
Expand Down

0 comments on commit 8248f59

Please sign in to comment.