Skip to content

CI: Add matrix for running tests #3

CI: Add matrix for running tests

CI: Add matrix for running tests #3

Workflow file for this run

---
name: Test
on:
pull_request: {}
push:
branches:
- main
env:
BUNDLE_WITHOUT: release
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- name: Run Rubocop
run: bundle exec rake rubocop
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v5
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Verify gem builds
run: gem build --strict --verbose *.gemspec
foremanci:
needs: test
name: Foreman Plugin tests
strategy:
fail-fast: false
matrix:
foreman:
- develop
- 3.16-stable
- 3.15-stable
- 3.14-stable
- 3.13-stable
uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0
with:
plugin: foreman_openbolt
foreman_version: ${{ matrix.foreman }}
tests:
needs:
- rubocop
- test
- foremanci
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed