Skip to content

CI: Replace puppet with openvox #201

CI: Replace puppet with openvox

CI: Replace puppet with openvox #201

Workflow file for this run

---
name: Test
on:
pull_request: {}
push:
branches:
- master
env:
BUNDLE_WITHOUT: release
jobs:
rubocop:
env:
BUNDLE_WITHOUT: release
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- 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-24.04
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- jruby-9.4
openvox:
- "~> 8"
- "~> 7"
- "https://github.com/OpenVoxProject/openvox.git#main"
exclude:
- ruby: "3.0"
openvox: "~> 8"
- ruby: "2.7"
openvox: "~> 8"
- ruby: "3.0"
openvox: "https://github.com/openvoxlabs/openvox.git#main"
- ruby: "2.7"
openvox: "https://github.com/openvoxlabs/openvox.git#main"
- ruby: "3.0"
openvox: "https://github.com/openvoxproject/openvox.git#main"
- ruby: "2.7"
openvox: "https://github.com/openvoxproject/openvox.git#main"
env:
PUPPET_VERSION: ${{ matrix.openvox }}
COVERAGE: ${{ matrix.coverage }}
name: "Ruby ${{ matrix.ruby }} - OpenVox ${{ matrix.openvox }}"
steps:
- name: Enable coverage reporting on Ruby 3.1
if: matrix.openvox == '~> 7.24' && matrix.ruby == '3.1'
run: echo 'COVERAGE=yes' >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Install expect
run: sudo apt-get install expect
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: spec tests
run: bundle exec rake features
- name: Verify gem builds
run: gem build --strict --verbose *.gemspec
tests:
needs:
- rubocop
- test
runs-on: ubuntu-latest
name: Test suite
steps:
- run: echo Test suite completed