Use edge-filepath module to create parent directories for NFS exports. #133
Workflow file for this run
This file contains 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: Test suite | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test-static-current: | |
strategy: | |
fail-fast: false | |
matrix: | |
puppet: [8.2.0] | |
ruby: [3.1.3, 3.2.0] | |
name: Static code analysis new | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
env: | |
PUPPET_VERSION: ${{ matrix.puppet }} | |
- name: Run metadata lint | |
run: | | |
PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake metadata_lint | |
- name: Run puppet lint | |
run: | | |
PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake lint | |
- name: Run puppet syntax check | |
run: | | |
PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake syntax | |
- name: Run puppet rspec tests | |
run: | | |
PUPPET_VERSION=${{ matrix.puppet }} STRICT_VARIABLES=yes bundle exec rake spec | |
- name: Run rubocop tests | |
run: | | |
PUPPET_VERSION=${{ matrix.puppet }} bundle exec rake rubocop | |
test-integration: | |
if: false | |
strategy: | |
fail-fast: false | |
matrix: | |
puppet: [7.0.0, 8.0.0] | |
beakerset: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, centos-7, debian-10, debian-11] | |
name: Integration tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
env: | |
BEAKER_set: ${{ matrix.beakerset }} | |
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet }} | |
PUPPET_INSTALL_TYPE: agent | |
- name: Run puppet-beaker tests | |
run: | | |
BEAKER_destroy=yes bundle exec rake acceptance | |
env: | |
BEAKER_set: ${{ matrix.beakerset }} | |
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet }} | |
PUPPET_INSTALL_TYPE: agent |