Skip to content

Merge pull request #31 from OpenVoxProject/dependabot/github_actions/… #94

Merge pull request #31 from OpenVoxProject/dependabot/github_actions/…

Merge pull request #31 from OpenVoxProject/dependabot/github_actions/… #94

Workflow file for this run

---
name: Ruby
on:
pull_request: {}
push:
branches:
- main
permissions:
contents: read
jobs:
rubocop_and_matrix:
runs-on: ubuntu-24.04
outputs:
ruby: ${{ steps.ruby.outputs.versions }}
steps:
- uses: actions/checkout@v6
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- name: Run linter
run: bundle exec rake rubocop
- id: ruby
uses: voxpupuli/ruby-version@v2
test:
runs-on: ubuntu-24.04
needs: rubocop_and_matrix
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJSON(needs.rubocop_and_matrix.outputs.ruby) }}
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec spec --color --format documentation --order random
tests:
needs:
- rubocop_and_matrix
- test
runs-on: ubuntu-24.04
name: Test suite
steps:
- run: echo Test suite completed