Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,29 @@ env:
CI: true

jobs:
matrix:
runs-on: ubuntu-24.04
outputs:
ruby: ${{ steps.ruby.outputs.versions }}
steps:
- uses: actions/checkout@v4
- name: Install Ruby 3.4
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
#- name: Run RuboCop
# run: bundle exec rake rubocop
- id: ruby
uses: voxpupuli/ruby-version@v1

linux_unit_tests:
needs: matrix
name: Ruby version
strategy:
fail-fast: false
matrix:
ruby:
- '2.7'
- '3.0'
- '3.2'
- '3.3'
ruby: ${{ fromJSON(needs.matrix.outputs.ruby) }}
runs-on: ubuntu-24.04
steps:
- name: Checkout current PR
Expand All @@ -43,3 +56,12 @@ jobs:
bundle env

- run: bundle exec rake spec_random

tests:
needs:
- matrix
- linux_unit_tests
runs-on: ubuntu-24.04
name: Test suite
steps:
- run: echo Test suite completed
1 change: 1 addition & 0 deletions openvoxserver-ca.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", ">= 1.16"
spec.add_development_dependency "rake", ">= 12.3.3"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency 'base64', '>= 0.3', '< 0.4'

# openvoxserver 7 uses jruby 9.3 which is compatible with MRI ruby 2.6
spec.required_ruby_version = '>= 2.6.0'
Expand Down