name: build-and-test
on: [push]
jobs:
  unit-tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - ruby-version: 2.4
            puppet-version: ~> 5
          - ruby-version: 2.5
            puppet-version: ~> 6
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        env:
          PUPPET_VERSION: ${{ matrix.puppet-version}}
        with:
          ruby-version: ${{matrix.ruby-version}}
      - run: bundle install
      - run: bundle exec rake test
        env:
          SPEC_OPTS: '--format documentation'

  acceptance-tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - beaker-set: debian-9-64
    steps:
      - uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
      - run: bundle install
      - run: bundle exec rake beaker

name: build-and-test
on: [push]
jobs:
  unit-tests:
    name: "Puppet ${{ matrix.puppet-version }} Unit Tests"
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - ruby-version: 2.4
            puppet-version: 5
          - ruby-version: 2.5
            puppet-version: 6
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        env:
          PUPPET_VERSION: "~> ${{ matrix.puppet-version }}"
        with:
          ruby-version: ${{matrix.ruby-version}}
      - run: bundle install
      - run: bundle exec rake test
        env:
          SPEC_OPTS: '--format documentation'

  acceptance-tests:
    name: "${{ matrix.label }} Acceptance Tests"
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - beaker-set: debian-9-64
            label: "Debian 9"
          - beaker-set: default
            label: "Debian 10"
          - beaker-set: ubuntu-1604-64
            label: "Ubuntu 16.04"
          - beaker-set: ubuntu-1804-64
            label: "Ubuntu 18.04"
    steps:
      - uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
      - run: bundle install
      - run: bundle exec rake beaker

Add more acceptance tests, also better job names
Add more acceptance tests, also better job names
