Extend GitHub Actions to install node and yarn

This commit is contained in:
Andreas Nedbal 2020-12-24 23:35:12 +01:00 committed by Andreas Nedbal
parent 07134f6f94
commit 9416debc4a
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,10 @@ jobs:
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7.x
- name: Set up Node 12
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install dependencies
run: sudo apt update && sudo apt-get install -y libpq-dev libxml2-dev libxslt1-dev libmagickwand-dev imagemagick
- name: Copy default configuration
@ -58,6 +62,10 @@ jobs:
bundle config path vendor/bundle
bundle config set without 'production'
bundle install --jobs 4 --retry 3
- name: Install node modules
run: |
npm i -g yarn
yarn install
- name: Set up database
run: bundle exec rake db:setup
env: