Precompile assets for spec
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -44,13 +44,18 @@ jobs:
|
|||||||
node-version: 18
|
node-version: 18
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||||
- name: Manage yarn cache
|
- name: Manage yarn, webpack and assets cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
# use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
# use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
||||||
id: yarn-cache
|
id: yarn-cache
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
path: |
|
||||||
|
${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||||
|
public/assets
|
||||||
|
public/packs-test
|
||||||
|
tmp/cache
|
||||||
|
tmp/webpacker
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn-
|
${{ runner.os }}-yarn-
|
||||||
@ -70,6 +75,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RAILS_ENV: test
|
RAILS_ENV: test
|
||||||
run: bundler exec rake db:schema:load
|
run: bundler exec rake db:schema:load
|
||||||
|
- name: Precompile assets
|
||||||
|
env:
|
||||||
|
RAILS_ENV: test
|
||||||
|
run: bundler exec rake assets:precompile
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
RAILS_ENV: test
|
RAILS_ENV: test
|
||||||
|
Reference in New Issue
Block a user