Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/relax as am dependencies #24

Merged
merged 3 commits into from
May 31, 2022
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
86 changes: 86 additions & 0 deletions .github/workflows/legacy_ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Legacy Ruby specs

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
name: Legacy Ruby specs
runs-on: ubuntu-18.04

strategy:
matrix:
ruby-version: ['2.2.10', '2.3.8', '2.4.10', '2.5.9']
gemfile: [am_3.2, am_4.0, am_4.1, am_4.2, am_5.0, am_5.1, am_5.2, am_6.0, am_6.1]
experimental: [false]

include:
# Ruby 2.1.10 is not available on GitHub Actions' ubuntu-20.04
# Ruby 2.1.9 returns segmentation faults, so this is marked as
# experimental
- ruby-version: '2.1.9'
gemfile: am_3.2
experimental: true
- ruby-version: '2.1.9'
gemfile: am_4.0
experimental: true
- ruby-version: '2.1.9'
gemfile: am_4.1
experimental: true
- ruby-version: '2.1.9'
gemfile: am_4.2
experimental: true

exclude:
- ruby-version: '2.2.10'
gemfile: am_6.0
- ruby-version: '2.2.10'
gemfile: am_6.1

- ruby-version: '2.3.8'
gemfile: am_4.0
- ruby-version: '2.3.8'
gemfile: am_4.1
- ruby-version: '2.3.8'
gemfile: am_6.0
- ruby-version: '2.3.8'
gemfile: am_6.1

- ruby-version: '2.4.10'
gemfile: am_3.2
- ruby-version: '2.4.10'
gemfile: am_4.0
- ruby-version: '2.4.10'
gemfile: am_4.1
- ruby-version: '2.4.10'
gemfile: am_6.0
- ruby-version: '2.4.10'
gemfile: am_6.1

- ruby-version: '2.5.9'
gemfile: am_3.2
- ruby-version: '2.5.9'
gemfile: am_4.0
- ruby-version: '2.5.9'
gemfile: am_4.1
- ruby-version: '2.5.9'
gemfile: am_4.2

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
TEST_CONFIG: ./spec/config.github.yml

continue-on-error: ${{ matrix.experimental }}

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run specs
run: bundle exec rake spec
107 changes: 8 additions & 99 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,103 +13,20 @@ jobs:

strategy:
matrix:
ruby-version: ['2.6.9', '2.7.5', '3.0.3', '3.1.0']
gemfile: [am_5.2, am_6.0, am_6.1, am_7.0]
ruby-version: ['2.6.10', '2.7.6', '3.0.4', '3.1.2']
gemfile: [am_6.0, am_6.1, am_7.0]
experimental: [false]

include:
# Ruby 2.1.10 is not available on GitHub Actions' ubuntu-20.04
# Ruby 2.1.9 returns segmentation faults, so this is marked as
# experimental
- ruby-version: '2.1.9'
gemfile: am_3.2
experimental: true
- ruby-version: '2.1.9'
gemfile: am_4.0
experimental: true
- ruby-version: '2.1.9'
gemfile: am_4.1
experimental: true
- ruby-version: '2.1.9'
gemfile: am_4.2
experimental: true

- ruby-version: '2.2.10'
gemfile: am_3.2
experimental: false
- ruby-version: '2.2.10'
gemfile: am_4.0
experimental: false
- ruby-version: '2.2.10'
gemfile: am_4.1
experimental: false
- ruby-version: '2.2.10'
gemfile: am_4.2
experimental: false
- ruby-version: '2.2.10'
gemfile: am_5.0
experimental: false
- ruby-version: '2.2.10'
gemfile: am_5.1
experimental: false
- ruby-version: '2.2.10'
gemfile: am_5.2
experimental: false

- ruby-version: '2.3.8'
gemfile: am_3.2
experimental: false
- ruby-version: '2.3.8'
gemfile: am_4.2
experimental: false
- ruby-version: '2.3.8'
gemfile: am_5.0
experimental: false
- ruby-version: '2.3.8'
gemfile: am_5.1
experimental: false
- ruby-version: '2.3.8'
gemfile: am_5.2
experimental: false

- ruby-version: '2.4.10'
gemfile: am_4.2
experimental: false
- ruby-version: '2.4.10'
gemfile: am_5.0
experimental: false
- ruby-version: '2.4.10'
gemfile: am_5.1
experimental: false
- ruby-version: '2.4.10'
gemfile: am_5.2
experimental: false

- ruby-version: '2.5.9'
gemfile: am_5.0
experimental: false
- ruby-version: '2.5.9'
gemfile: am_5.1
experimental: false
- ruby-version: '2.5.9'
gemfile: am_5.2
experimental: false
- ruby-version: '2.5.9'
gemfile: am_6.0
experimental: false
- ruby-version: '2.5.9'
gemfile: am_6.1
experimental: false

- ruby-version: '2.7.5'
- ruby-version: '2.7.6'
gemfile: am_edge
experimental: true

- ruby-version: '3.0.3'
- ruby-version: '3.0.4'
gemfile: am_edge
experimental: true

- ruby-version: '3.1.0'
- ruby-version: '3.1.2'
gemfile: am_edge
experimental: true

Expand All @@ -121,20 +38,12 @@ jobs:
experimental: true

exclude:
- ruby-version: '2.6.9'
- ruby-version: '2.6.10'
gemfile: am_7.0

- ruby-version: '2.7.5'
gemfile: am_5.2

- ruby-version: '3.0.3'
gemfile: am_5.2

- ruby-version: '3.1.0'
gemfile: am_5.2
- ruby-version: '3.1.0'
- ruby-version: '3.1.2'
gemfile: am_6.0
- ruby-version: '3.1.0'
- ruby-version: '3.1.2'
gemfile: am_6.1

env:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Hawk

[![Build Status](https://github.com/ifad/hawk/actions/workflows/ruby.yml/badge.svg)](https://github.com/ifad/hawk/actions)
[![Legacy Build Status](https://github.com/ifad/hawk/actions/workflows/legacy_ruby.yml/badge.svg)](https://github.com/ifad/hawk/actions)

Hawk is an API Client framework. It is used as a base to then build your API
clients. It consumes JSON and produces Ruby objects without any Hash magic.
Expand Down
4 changes: 2 additions & 2 deletions hawk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
spec.add_dependency 'ethon', '>= 0.7.4'
spec.add_dependency 'multi_json'
spec.add_dependency 'dalli'
spec.add_dependency 'activesupport', '>= 3.2.0'
spec.add_dependency 'activemodel', '>= 3.2.0'
spec.add_dependency 'activesupport', '>= 3.0.0'
spec.add_dependency 'activemodel', '>= 3.0.0'

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake'
Expand Down