Update GitHub Actions to latest vetted versions (#1) #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.7 | |
| puppet-version: 6 | |
| - ruby-version: 3.1 | |
| puppet-version: 7 | |
| - ruby-version: 3.1 | |
| puppet-version: 8 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 | |
| with: | |
| ruby-version: ${{matrix.ruby-version}} | |
| - run: bundle install | |
| env: | |
| PUPPET_VERSION: "~> ${{ matrix.puppet-version }}" | |
| - run: bundle exec rake test | |
| env: | |
| PUPPET_VERSION: "~> ${{ matrix.puppet-version }}" | |
| SPEC_OPTS: '--format documentation' | |
| RUBYOPT: "-W0" | |
| 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-1804-64 | |
| label: "Ubuntu 18.04" | |
| - beaker-set: ubuntu-2004-64 | |
| label: "Ubuntu 20.04" | |
| steps: | |
| - uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 | |
| - run: bundle install | |
| - run: bundle exec rake beaker |