GitHub Action
Solaris Virtual Machine
v1
Latest version
Run your workflow in a SunOS 11.4 virtual machine using VirtualBox.
name: Run Solaris tests
on:
push:
branches:
- master
tags:
- v*
pull_request:
workflow_dispatch:
jobs:
sunos-tests:
name: Solaris (SunOS) tests
runs-on: macos-10.15
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
key: sol-11_4
path: |
sol-11_4.ova
- uses: mondeja/solaris-vm-action@v1
with:
run: |
sh build.sh
sh test.sh
The optional
actions/cache
step saves ~3 min for subsequents runs of the action under the same branch, but takes 3.5GB of your cache storage when each repository has a limit of 5GB (see Cache Limits).
run
(required): Commands to run, in multiple lines.prepare
: Optional preparation commands to run in the Solaris VM before main execution.cpus
(1): Number of CPUs for the virtual machine.memory
(4096): RAM memory size for the virtual machine.