Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed May 13, 2024
1 parent 4bcc2d7 commit a7a8e1b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ jobs:
env:
# $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
LOCKFILE: '${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile.lock'
LOCKFILE_HASH: hashFiles('${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile.lock')
# Workaround b/c upgrading Minitest broke some mocking expectations
# having to do with automatic kwarg splatting
MT_KWARGS_HACK: 1
Expand All @@ -105,17 +107,20 @@ jobs:
with:
bundler: 2.4.9
ruby-version: ${{ matrix.ruby }}
- run: echo hash=${LOCKFILE_HASH} >> $GITHUB_ENV
- run: echo lockfilepath=${LOCKFILE} >> $GITHUB_ENV
- run: ./test/bin/create-fake-js-package-managers ${{ matrix.js_package_manager.installer }}
- run: echo ${{ hashFiles('${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile.lock') }}
- run: echo ${{ hashFiles('/home/runner/work/react-rails/react-rails/gemfiles/base.gemfile.lock') }}
- run: echo ${{ hashFiles('test/dummy/yarn.lock') }}
- run: echo ${{ hashFiles(${{ LOCKFILE }}) }}
- run: echo ${{ hashFiles(${{ env.lockfilepath }}) }}
- run: echo '${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile.lock'
- run: ls -l '${{ github.workspace }}/gemfiles/'
- name: Save dummy app ruby gems to cache
uses: actions/cache@v3
with:
path: test/dummy/vendor/bundle
key: dummy-app-gem-cache-${{ hashFiles('${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile.lock') }}
key: dummy-app-gem-cache-${{ env.hash }}
- name: Install Ruby Gems for dummy app
run: bundle lock --add-platform 'x86_64-linux' && bundle check --path=test/dummy/vendor/bundle || bundle _2.4.9_ install --frozen --path=test/dummy/vendor/bundle --jobs=4 --retry=3
- run: cd test/dummy && yalc add react_ujs && ${{ matrix.js_package_manager.installer }} install
Expand Down

0 comments on commit a7a8e1b

Please sign in to comment.