This is a very simple GitHub action that allows you to run tests using the Puppet Development Kit. It uses the official Puppet PDK docker image as its basis.
Currently this takes a single argument, action
, that is just passed
to the invocation of pdk
directly.
name: Run PDK tests
on:
- push
- pull_request
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate
uses: mysociety/action-pdk@master
with:
action: 'validate'
- name: Run Unit Tests
uses: mysociety/action-pdk@master
with:
action: 'test unit'