Skip to content

Commit

Permalink
Revert "Add Gemfile.lock for different Ruby versions"
Browse files Browse the repository at this point in the history
  • Loading branch information
JinHuangAtZen authored May 20, 2024
1 parent 762b781 commit f5a9859
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 1,049 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,11 @@ jobs:
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}

- 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'
- name: Test and Lint
run: |
BUNDLE_GEMFILE=Gemfile.2.7 bundle exec rubocop
bundle install
bundle exec rake
bundle exec rubocop
spec-live:
name: Spec live
if: github.repository == 'zendesk/zendesk_api_client_rb'
Expand All @@ -69,7 +52,7 @@ jobs:
ruby-version: 3.1
- name: spec:live
run: |
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
bundle install
bundle exec rake clean_live set_ci_credentials spec:live ||
bundle exec rake clean_live &&
bundle exec rspec spec/live --only-failures
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ spec/fixtures/cassettes
spec/fixtures/credentials.yml
coverage/**
.yardoc/**
Gemfile.lock
.ruby-version
vendor/bundle/**
pkg/**
File renamed without changes.
1 change: 0 additions & 1 deletion Gemfile.2.7

This file was deleted.

162 changes: 0 additions & 162 deletions Gemfile.2.7.lock

This file was deleted.

1 change: 0 additions & 1 deletion Gemfile.3.0

This file was deleted.

165 changes: 0 additions & 165 deletions Gemfile.3.0.lock

This file was deleted.

1 change: 0 additions & 1 deletion Gemfile.3.1

This file was deleted.

Loading

0 comments on commit f5a9859

Please sign in to comment.