Skip to content
box

GitHub Action

Solaris Virtual Machine

v1 Latest version

Solaris Virtual Machine

box

Solaris Virtual Machine

Run your workflow job on a Solaris VM

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Solaris Virtual Machine

uses: mondeja/solaris-vm-action@v1

Learn more about this action in mondeja/solaris-vm-action

Choose a version

solaris-vm-action

Tests

Run your workflow in a SunOS 11.4 virtual machine using VirtualBox.

Usage

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).

Arguments

  • 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.