Skip to content

Commit

Permalink
Merge pull request #566 from zendesk/jin.huang/add-gemfile-lock-file
Browse files Browse the repository at this point in the history
Add Gemfile.lock for different Ruby versions
  • Loading branch information
JinHuangAtZen authored May 20, 2024
2 parents 36f5a13 + 5e3d675 commit e4a10e6
Show file tree
Hide file tree
Showing 16 changed files with 1,049 additions and 11 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,28 @@ jobs:
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Test and Lint

- name: Custom cache gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}-${{ matrix.ruby }}
restore-keys: |
${{ runner.os }}-gems-${{ matrix.ruby }}
- name: Install gems
run: |
BUNDLE_GEMFILE=Gemfile.${{ matrix.ruby }} bundle install --jobs 4 --retry 3 --path vendor/bundle
- name: Test
run: |
BUNDLE_GEMFILE=Gemfile.${{ matrix.ruby }} bundle exec rake
- name: Lint
if: matrix.ruby == '2.7'
run: |
bundle install
bundle exec rake
bundle exec rubocop
BUNDLE_GEMFILE=Gemfile.2.7 bundle exec rubocop
spec-live:
name: Spec live
if: github.repository == 'zendesk/zendesk_api_client_rb'
Expand All @@ -52,7 +69,7 @@ jobs:
ruby-version: 3.1
- name: spec:live
run: |
bundle install
bundle exec rake clean_live set_ci_credentials spec:live ||
bundle exec rake clean_live &&
bundle exec rspec spec/live --only-failures
BUNDLE_GEMFILE=Gemfile.3.1 bundle install --jobs 4 --retry 3 --path vendor/bundle
BUNDLE_GEMFILE=Gemfile.3.1 bundle exec rake clean_live set_ci_credentials spec:live ||
BUNDLE_GEMFILE=Gemfile.3.1 bundle exec rake clean_live &&
BUNDLE_GEMFILE=Gemfile.3.1 bundle exec rspec spec/live --only-failures
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ spec/fixtures/cassettes
spec/fixtures/credentials.yml
coverage/**
.yardoc/**
Gemfile.lock
.ruby-version
vendor/bundle/**
pkg/**
1 change: 1 addition & 0 deletions Gemfile.2.7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eval_gemfile('common.rb')
162 changes: 162 additions & 0 deletions Gemfile.2.7.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
PATH
remote: .
specs:
zendesk_api (3.0.5)
faraday (> 2.0.0)
faraday-multipart
hashie (>= 3.5.2, < 6.0.0)
inflection
mini_mime
multipart-post (~> 2.0)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.1.3.2)
actionview (= 7.1.3.2)
activesupport (= 7.1.3.2)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.3.2)
activesupport (= 7.1.3.2)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (7.1.3.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.2.4)
bump (0.10.0)
byebug (11.1.3)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
diff-lcs (1.5.1)
drb (2.2.1)
erubi (1.12.0)
faraday (2.8.1)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (3.0.2)
hashdiff (1.1.0)
hashie (5.0.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
inflection (1.0.0)
jaro_winkler (1.5.6)
json (2.7.2)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mini_mime (1.1.5)
mini_portile2 (2.8.6)
minitest (5.22.3)
multipart-post (2.4.1)
mutex_m (0.2.0)
nokogiri (1.15.6)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
public_suffix (5.0.5)
racc (1.7.3)
rack (3.0.10)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rainbow (3.1.1)
rake (13.2.1)
rexml (3.2.6)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.3)
rubocop (0.79.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
scrub_rb (1.0.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (1.6.1)
vcr (6.2.0)
webmock (3.23.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
yard (0.9.36)

PLATFORMS
ruby

DEPENDENCIES
actionpack (>= 5.2.4.6)
addressable (>= 2.8.0)
bump
byebug
jruby-openssl
json (>= 2.3.0)
mini_mime
rake
rspec (= 3.10.0)
rspec-core (= 3.10.1)
rspec-expectations (= 3.10.2)
rspec-mocks (= 3.10.2)
rspec-support (= 3.10.3)
rubocop (~> 0.79.0)
scrub_rb
vcr (~> 6.0)
webmock
yard
zendesk_api!

BUNDLED WITH
2.1.4
1 change: 1 addition & 0 deletions Gemfile.3.0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eval_gemfile('common.rb')
165 changes: 165 additions & 0 deletions Gemfile.3.0.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
PATH
remote: .
specs:
zendesk_api (3.0.5)
faraday (> 2.0.0)
faraday-multipart
hashie (>= 3.5.2, < 6.0.0)
inflection
mini_mime
multipart-post (~> 2.0)

GEM
remote: https://rubygems.org/
specs:
actionpack (7.1.3.2)
actionview (= 7.1.3.2)
activesupport (= 7.1.3.2)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actionview (7.1.3.2)
activesupport (= 7.1.3.2)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activesupport (7.1.3.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.2.4)
bump (0.10.0)
byebug (11.1.3)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
diff-lcs (1.5.1)
drb (2.2.1)
erubi (1.12.0)
faraday (2.9.0)
faraday-net_http (>= 2.0, < 3.2)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (3.1.0)
net-http
hashdiff (1.1.0)
hashie (5.0.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
inflection (1.0.0)
json (2.7.2)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mini_mime (1.1.5)
minitest (5.22.3)
multipart-post (2.4.1)
mutex_m (0.2.0)
net-http (0.4.1)
uri
nokogiri (1.16.4-arm64-darwin)
racc (~> 1.4)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
racc
public_suffix (5.0.5)
racc (1.7.3)
rack (3.0.10)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
rack (>= 1.3)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.3)
rubocop (1.13.0)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.2.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
scrub_rb (1.0.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
uri (0.13.0)
vcr (6.2.0)
webmock (3.23.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
yard (0.9.36)

PLATFORMS
arm64-darwin-23

DEPENDENCIES
actionpack (>= 5.2.4.6)
addressable (>= 2.8.0)
bump
byebug
jruby-openssl
json (>= 2.3.0)
mini_mime
rake
rspec (= 3.10.0)
rspec-core (= 3.10.1)
rspec-expectations (= 3.10.2)
rspec-mocks (= 3.10.2)
rspec-support (= 3.10.3)
rubocop (~> 1.13.0)
scrub_rb
vcr (~> 6.0)
webmock
yard
zendesk_api!

BUNDLED WITH
2.2.33
1 change: 1 addition & 0 deletions Gemfile.3.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eval_gemfile('common.rb')
Loading

0 comments on commit e4a10e6

Please sign in to comment.