Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

A central place to keep Github Actions Workflow files so that other repositories can reference them.

License

Notifications You must be signed in to change notification settings

puppetlabs-toy-chest/action-litmus_parallel

Repository files navigation

Notice of no maintainership

This action is not further maintained. If you want to run litmus on Github Actions, please check out the PDK templates.

Action Litmus-Parallel

This action was designed to allow running acceptance tests for Puppet modules using Litmus. This will allow you to set up a matrix strategy in your Github Actions workflow to run the module's acceptance tests on multiple platforms and Puppet agent versions.

Getting Started

In the following example you can see the jobs setup in a Github Actions workflow that runs the acceptance tests using Litmus for a module using Puppet agent versions 5 and 6 and platform array specified in the provision.yaml of the module, in this example the platforms specified in the release_checks are used. For more information about the provision.yaml and Litmus see the documentation here.

provisin.yaml

---
release_checks:
  provisioner: docker
  images: ['litmusimage/ubuntu:14.04', 'litmusimage/ubuntu:16.04', 'litmusimage/ubuntu:18.04']

.github/workflows/example_workflow.yaml

...
jobs:
  LitmusAcceptance:
    runs-on: self-hosted

    strategy:
      matrix:
        ruby_version: [2.5.x]
        puppet_gem_version: [~> 6.0]
        platform: [release_checks]
        agent_family: ['puppet5', 'puppet6']

    steps:
    - uses: actions/checkout@v1

    - name: Litmus Parallel
      uses: puppetlabs/action-litmus_parallel@main
      with:
        platform: ${{ matrix.platform }}
        agent_family: ${{ matrix.agent_family }}

About

A central place to keep Github Actions Workflow files so that other repositories can reference them.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published