https://github.com/mondeja/solaris-vm-action
https://github.com/mondeja/solaris-vm-action
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mondeja/solaris-vm-action
- Owner: mondeja
- License: bsd-3-clause
- Created: 2021-07-12T15:16:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-11T18:11:28.000Z (9 months ago)
- Last Synced: 2025-06-13T10:09:38.666Z (4 months ago)
- Language: Shell
- Size: 30.3 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# solaris-vm-action
[![Tests][tests-image]][tests-link]
Run your workflow in a SunOS 11.4 virtual machine using VirtualBox.
## Usage
```yaml
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`][actions-cache-github-link] 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][cache-limits-link]).## 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.[tests-image]: https://img.shields.io/github/actions/workflow/status/mondeja/solaris-vm-action/ci.yml?branch=master&label=tests&logo=github
[tests-link]: https://github.com/mondeja/solaris-vm-action/actions/workflows/ci.yml
[actions-cache-github-link]: https://github.com/actions/cache
[cache-limits-link]: https://github.com/actions/cache#cache-limits