Skip to content

Remove inspec-based acceptance tests for EL7 #204

Remove inspec-based acceptance tests for EL7

Remove inspec-based acceptance tests for EL7 #204

Workflow file for this run

# Run Puppet checks and test matrix on Pull Requests
# ------------------------------------------------------------------------------
# NOTICE: **This file is maintained with puppetsync**
#
# This file is updated automatically as part of a puppet module baseline.
#
# The next baseline sync will overwrite any local changes to this file!
#
# ==============================================================================
#
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
#
name: PR Tests
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
puppet-syntax:
name: 'Puppet Syntax'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Install Ruby 3.2"
uses: ruby/setup-ruby@v1 # ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with:
ruby-version: 3.2.11
bundler-cache: true
- run: "bundle exec rake syntax"
puppet-style:
name: 'Puppet Style'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Install Ruby 3.2"
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.11
bundler-cache: true
- run: "bundle exec rake lint"
- run: "bundle exec rake metadata_lint"
ruby-style:
name: 'Ruby Style'
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v6
- name: "Install Ruby 3.4"
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.9
bundler-cache: true
- run: |
bundle show
bundle exec rake rubocop
file-checks:
name: 'File checks'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: 'Install Ruby 3.4'
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.9
bundler-cache: true
- run: bundle exec rake check:dot_underscore
- run: bundle exec rake check:test_file
releng-checks:
name: 'RELENG checks'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: 'Install Ruby 3.4'
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.9
bundler-cache: true
- name: 'Tags and changelogs'
run: |
bundle exec rake pkg:check_version
bundle exec rake pkg:compare_latest_tag[,true]
bundle exec rake pkg:create_tag_changelog
- name: 'Test-build the Puppet module'
run: 'bundle exec pdk build --force'
spec-tests:
name: 'Puppet Spec'
needs: [puppet-syntax]
runs-on: ubuntu-latest
strategy:
matrix:
puppet:
- label: 'Puppet 8.x'
puppet_version: '~> 8.0'
ruby_version: '3.2'
experimental: false
fail-fast: false
env:
PUPPET_VERSION: ${{matrix.puppet.puppet_version}}
steps:
- uses: actions/checkout@v6
- name: 'Install Ruby ${{matrix.puppet.ruby_version}}'
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.puppet.ruby_version}}
bundler-cache: true
- run: 'command -v rpm || if command -v apt-get; then sudo apt-get update; sudo apt-get install -y rpm; fi ||:'
- run: 'bundle exec rake parallel_spec'
continue-on-error: ${{matrix.puppet.experimental}}
acceptance:
runs-on:
- ubuntu-latest
strategy:
matrix:
node:
- docker_alma8
- docker_alma9
- docker_alma10
- docker_centos9
- docker_centos10
- docker_oel8
- docker_oel9
- docker_oel10
# We can't test on RHEL because of subscription requirements
# - docker_rhel8
# - docker_rhel9
# - docker_rhel10
- docker_rocky8
- docker_rocky9
- docker_rocky10
fail-fast: false
steps:
- name: checkout repo
uses: actions/checkout@v6
- name: setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.9
- name: bundle install
run: |
bundle install
- name: Setup podman
run: |
systemctl start --user podman.socket
echo "DOCKER_HOST=unix:///run/user/$(id -u)/podman/podman.sock" >> "$GITHUB_ENV"
- name: beaker
run: |
bundle exec rake beaker:suites[default,${{ matrix.node }}]