Skip to content

Commit

Permalink
CI: Enable caching bundler and and yarn dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmoody committed Mar 5, 2022
1 parent be121c3 commit 4176be6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.20.0
cache: 'yarn'
- name: Test and Lint
env:
DB_HOST: localhost
Expand All @@ -46,8 +48,6 @@ jobs:
sudo apt-get update
sudo apt-get -yqq install libpq-dev imagemagick ffmpeg
yarn install
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rails db:setup
bundle exec rails lint:all
bundle exec rails test:all
Expand Down

0 comments on commit 4176be6

Please sign in to comment.