Skip to content

Commit

Permalink
WIP - continue debugging run-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Janell-Huyck committed Jan 27, 2025
1 parent bdc7ecd commit 747e251
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/run-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # Automatically caches gems based on Gemfile.lock

- name: Debug Bundler Environment
run: |
cat "Ruby version:"
ruby -v
cat "Bundle version:"
bundle --version
cat "Gemfile.lock:"
cat Gemfile.lock || echo "Gemfile.lock is missing!"
cat "Bundler-specific environment variables:"
env | grep -i bundler || echo "No bundler-specific environment variables detected."
# Job 2: Install Node Modules
install-node-modules:
runs-on: ubuntu-latest
Expand All @@ -40,21 +52,29 @@ jobs:
uses: actions/checkout@v3

- name: Set up Ruby and Node.js
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Verify Bundler and Gems
run: |
bundle check || bundle install
- name: Debug Installed Gems
run: ls -la $(bundle show rails)

- name: Restore Precompiled Assets Cache
uses: actions/cache@v3
with:
path: public/packs-test
key: ${{ runner.os }}-packs-test-${{ hashFiles('app/assets/**/*', 'package-lock.json', 'Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-packs-test-
- name: Precompile Assets
run: RAILS_ENV=test bundle exec rails assets:precompile --trace
env:
Expand Down

0 comments on commit 747e251

Please sign in to comment.