Skip to content

Commit

Permalink
Merge pull request #5749 from elasticspoon/feat/precompile-assets-CI
Browse files Browse the repository at this point in the history
feat: precompile assets in CI
  • Loading branch information
compwron authored May 26, 2024
2 parents 445e9e4 + 3aa3447 commit 8ce3a07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ jobs:
run: docker-compose up -d
- name: db:reset
run: docker-compose exec -T web rails db:reset
- name: compile css
run: docker-compose exec -T web bundle exec rails css:build
- name: compile js
run: docker-compose exec -T web bundle exec rails javascript:build
- name: compile assets
run: docker-compose exec -T web bundle exec rails assets:precompile
- name: Test
run: docker-compose exec -T web bundle exec rspec spec --format documentation

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ jobs:
run: |
bundle exec rake db:create
bundle exec rake db:schema:load
bundle exec rails css:build
bundle exec rails javascript:build
bundle exec rails assets:precompile
- name: Run rspec and upload code coverage
env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/rspec_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ jobs:
- name: Build App
run: |
bundle exec rails css:build
bundle exec rails javascript:build
bundle exec rails assets:precompile
- name: Run rspec group ${{ inputs.group }}
env:
Expand Down

0 comments on commit 8ce3a07

Please sign in to comment.