Skip to content

Commit

Permalink
Add CI job to make sure assets compile
Browse files Browse the repository at this point in the history
  • Loading branch information
rossta committed Dec 31, 2023
1 parent 4679257 commit 01267be
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,35 @@ jobs:
- name: Run tests
run: bin/rspec

assets:
name: Assets
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18.15.0'
cache: yarn

- name: Install packages
run: |
yarn install --pure-lockfile
- name: Setup test database
env:
RAILS_ENV: test
run: |
bin/rails db:setup
- name: Make sure assets compile
run: RAILS_ENV=production bin/rails assets:precompile

0 comments on commit 01267be

Please sign in to comment.