Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: precompile assets in CI #5749

Merged
merged 1 commit into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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