Skip to content

Add compliance_engine::enforcement lookup_key function #153

Add compliance_engine::enforcement lookup_key function

Add compliance_engine::enforcement lookup_key function #153

Workflow file for this run

---
name: PR Tests
'on':
push:
branches:
- main
pull_request:
jobs:
ruby-style:
name: 'Ruby Style'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Install Ruby"
uses: ruby/setup-ruby@v1
with:
ruby-version: 4.0.0
bundler-cache: true
- run: bundle exec rake rubocop
spec-tests:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.2' # Puppet 8
- '3.3'
- '3.4'
- '4.0' # Latest
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Spec tests
run: |
if [ "${{ matrix.ruby }}" = "4.0" ]; then
bundle exec rspec spec/classes
else
bundle exec rake spec
fi