From 9416debc4a987792825922b93e8a17884451ed44 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 24 Dec 2020 23:35:12 +0100 Subject: [PATCH] Extend GitHub Actions to install node and yarn --- .github/workflows/retrospring.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/retrospring.yml b/.github/workflows/retrospring.yml index 90d33f11..79a567cb 100644 --- a/.github/workflows/retrospring.yml +++ b/.github/workflows/retrospring.yml @@ -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: