Skip to content

Merge pull request #407 from openstax/smaller-assessment-spreadsheets #367

Merge pull request #407 from openstax/smaller-assessment-spreadsheets

Merge pull request #407 from openstax/smaller-assessment-spreadsheets #367

Workflow file for this run

name: Assets
on:
pull_request:
push:
branches:
- main
jobs:
assets:
timeout-minutes: 30
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
# Get OS version - https://github.com/actions/cache/issues/543
- run: echo "OS_VERSION=`lsb_release -sr`" >> $GITHUB_ENV
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ env.OS_VERSION }}-gems-pr-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.OS_VERSION }}-gems-pr-
- name: Build assets
run: |
gem install bundler -v 2.4.22
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rake assets:precompile