2021-10-26 16:58:48 +02:00
|
|
|
name: 'Setup Rails assets'
|
|
|
|
description: 'Pre-compile and cache the app assets'
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Assets cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
public/assets
|
|
|
|
public/packs-test
|
|
|
|
tmp/cache/webpacker
|
2022-05-10 15:41:26 +02:00
|
|
|
key: asset-cache-${{ runner.os }}-${{ hashFiles('patches/**/*.patch') }}-${{ github.ref }}-${{ github.sha }}
|
2021-10-26 16:58:48 +02:00
|
|
|
restore-keys: |
|
2022-05-10 15:41:26 +02:00
|
|
|
asset-cache-${{ runner.os }}-${{ hashFiles('patches/**/*.patch') }}-${{ github.ref }}-${{ github.sha }}
|
|
|
|
asset-cache-${{ runner.os }}-${{ hashFiles('patches/**/*.patch') }}-${{ github.ref }}-
|
|
|
|
asset-cache-${{ runner.os }}-${{ hashFiles('patches/**/*.patch') }}
|
2021-10-26 16:58:48 +02:00
|
|
|
|
|
|
|
- name: Precompile assets
|
|
|
|
env:
|
|
|
|
RAILS_ENV: test
|
|
|
|
run: |
|
|
|
|
rm bin/yarn
|
|
|
|
bin/rails assets:precompile --trace
|
|
|
|
shell: bash
|