Skip to content
Merged
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
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
linting:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- name: Pull repository
Expand All @@ -17,17 +17,26 @@ jobs:
run: |
bundle exec rubocop --ignore-unrecognized-cops

backend-services:
runs-on: ubuntu-22.04
tests:
runs-on: ubuntu-latest
timeout-minutes: 3

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is optimistic 😀 But surely enough for some time!

name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.3.12'
- '3.4.11'
- '4.0.7'

steps:
- name: Pull repository
uses: actions/checkout@v7
- name: Bundle install and cache result
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run rspec
- name: Run rspec tests
run: |
source .github/ci_workflow.env
bundle exec rspec
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.4
4.0.7
6 changes: 4 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ GEM
net-smtp
method_source (1.0.0)
mini_mime (1.1.5)
minitest (5.26.0)
minitest (6.0.6)
drb (~> 2.0)
prism (~> 1.5)
multi_xml (0.6.0)
mutex_m (0.3.0)
nenv (0.3.0)
Expand Down Expand Up @@ -246,4 +248,4 @@ DEPENDENCIES
webmock

BUNDLED WITH
2.5.15
4.0.20
2 changes: 1 addition & 1 deletion spec/ioki/endpoints_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

it 'raises an error if the argument does not respond_to the interpolation method' do
expect { described_class.url_elements([:id], 1) }
.to raise_error(NoMethodError, /undefined method `id' for an instance of Integer/)
.to raise_error(NoMethodError, /undefined method [`']id['"]? for an instance of Integer/)
end

it 'raises an error if the path consists of something else than Strings and Symbols' do
Expand Down
Loading