Commit de1f1aac authored by Jonathan Gazeley's avatar Jonathan Gazeley Committed by Nathan Ward
Browse files

Add tests using puppets-epic-show-theatre Github actions

Previously tested was https://github.com/mysociety/action-pdk, which didn't offer as much functionality, and didn't run `pdk validate`.
parent c0576f3d
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
name: Run PDK tests

on:
  - push
  - pull_request

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - name: Clone repository
      uses: actions/checkout@v2

    - name: Run unit tests
      uses: puppets-epic-show-theatre/action-pdk-test-unit@v1
      with:
        puppet-version: ""
        # [optional]
        # A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
        pe-version: ""
        # [optional]
        # A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".
  validate:
    runs-on: ubuntu-latest
    steps:
    - name: Clone repository
      uses: actions/checkout@v2

    - name: Run PDK validate
      uses: puppets-epic-show-theatre/action-pdk-validate@v1
      with:
        puppet-version: ""
        # [optional]
        # A string indicating the Puppet version to validate against, such as "5.4.2" or "5.5".
        pe-version: ""
        # [optional]
        # A string indicating the PE version to validate against, such as "2017.3.5" or "2018.1".