tests #874
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: tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 4 * * *' | |
jobs: | |
syntax-lint: | |
runs-on: ubuntu-latest | |
env: | |
SIMPLECOV: yes | |
PUPPET_GEM_VERSION: "~> 7.0" | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Run tests | |
run: bundle exec rake syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop | |
unit: | |
runs-on: ubuntu-latest | |
env: | |
SIMPLECOV: yes | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- rvm: 2.7 | |
puppet_gem_version: "~> 7.0" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.rvm }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
env: | |
PUPPET_GEM_VERSION: ${{ matrix.puppet_gem_version }} | |
- name: Run tests | |
run: bundle exec rake parallel_spec | |
env: | |
PUPPET_GEM_VERSION: ${{ matrix.puppet_gem_version }} | |
integration: | |
runs-on: ubuntu-latest | |
env: | |
SIMPLECOV: yes | |
strategy: | |
fail-fast: false | |
matrix: | |
version_os_puppet: | |
- centos-7-puppet6 | |
- centos-7-puppet7 | |
- centos-8-puppet6 | |
- centos-8-puppet7 | |
- debian-10-puppet6 | |
- debian-10-puppet7 | |
- opensuse-15-puppet6 | |
- opensuse-15-puppet7 | |
- oracle-7-puppet6 | |
- oracle-7-puppet7 | |
- ubuntu-18-04-puppet6 | |
- ubuntu-18-04-puppet7 | |
- ubuntu-20-04-puppet6 | |
- ubuntu-20-04-puppet7 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Run tests | |
run: bundle exec rake kitchen | |
env: | |
INSTANCE: ${{ matrix.version_os_puppet }} |