Merge pull request #95 from arakawatomonori/dependabot/npm_and_yarn/i… #201
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruby | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 3.1 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.4 | |
- name: Build and test with Rake | |
run: | | |
gem install bundler | |
sudo apt install -y libpq-dev libsqlite3-dev | |
bundle install --jobs 4 --retry 3 | |
rails db:migrate RAILS_ENV=test | |
node -v | |
echo $NODE_OPTIONS | |
npm install yarn | |
yarn install | |
NODE_OPTIONS=--openssl-legacy-provider bundle exec rails webpacker:install | |
NODE_OPTIONS=--openssl-legacy-provider bundle exec rails webpacker:compile | |
bundle exec rake | |