Skip to content

Commit

Permalink
ci: Fixes gem dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmechlark committed Sep 9, 2023
1 parent 6321abb commit 8f0e06c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 12 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

bundler-cache: false
- name: Install dependencies
run: bundle install
run: bundle install --jobs 4 --retry 3

- name: Rubocop run
run: |
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_DEPLOYMENT: false
with:
ruby-version: '3.0'
bundler-cache: true
bundler-cache: false
- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Run RuboCop
run: bundle exec rubocop --parallel

Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_DEPLOYMENT: false
with:
ruby-version: '3.0'
bundler-cache: true
bundler-cache: false
- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Publish to GPR
run: |
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up Ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_DEPLOYMENT: false
with:
ruby-version: '3.0'
bundler-cache: true
bundler-cache: false
- name: Install dependencies
run: bundle install --jobs 4 --retry 3

- name: Run RuboCop
run: bundle exec rubocop --parallel

Expand Down

0 comments on commit 8f0e06c

Please sign in to comment.