Skip to content

Fix legacy fact usage #165

Fix legacy fact usage

Fix legacy fact usage #165

Workflow file for this run

# Run all tests as GitHub Actions
name: Acceptance Tests
on:
push:
branches:
# A test branch for seeing if your tests will pass in your personal fork
- test_me_github
pull_request:
types: [opened, reopened, synchronize]
jobs:
acceptance:
name: '${{matrix.beaker.suite}}, Puppet ${{matrix.puppet.puppet_version}}'
runs-on:
- ubuntu-latest
strategy:
matrix:
puppet:
- label: 'Puppet 7.x [SIMP 6.6/PE 2021.7]'
puppet_version: '~> 7.0'
ruby_version: '2.7'
experimental: false
- label: 'Puppet 8.x'
puppet_version: '~> 8.0'
ruby_version: '3.2'
experimental: true
beaker:
- label: beaker
suite: default
allowed_to_fail: false
- label: beaker puppet_collections
suite: puppet_collections
allowed_to_fail: false
- label: beaker ssg
suite: ssg
allowed_to_fail: false
# The inspec suite fails for unclear reasons during an scp.
# Sicura tests compliance at the framework level, so troubleshooting
# inspec acceptance tests is not a priority at present.
- label: beaker inspec
suite: inspec
allowed_to_fail: true
fail-fast: false
env:
PUPPET_VERSION: ${{matrix.puppet.puppet_version}}
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.puppet.ruby_version }}
- name: ensure entropy
run: |
sudo apt-get update -y
sudo apt-get install -y rng-tools
sudo systemctl start rng-tools
- name: install docker
run: |
set -x
sudo apt-get remove -y podman ||:
sudo apt-get install -y docker-ce docker docker-engine docker.io containerd runc ||:
sudo apt-get update
sudo apt autoremove -y
sudo systemctl start docker
- name: install bundle
run: |
bundle config path vendor
bundle install -j $(nproc)
- name: 'run beaker:suite "${{matrix.beaker.label}}"'
continue-on-error: ${{matrix.puppet.experimental || matrix.beaker.allowed_to_fail}}
env:
BEAKER_SUITE: ${{matrix.beaker.suite}}
run: bundle exec rake beaker:suites[$BEAKER_SUITE,docker]