Skip to content

Set NODE_OPTIONS in GitHub Actions run #174

Set NODE_OPTIONS in GitHub Actions run

Set NODE_OPTIONS in GitHub Actions run #174

Workflow file for this run

name: Ruby
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.10
- name: Set NODE_OPTIONS environment variable
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
- 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
bundle exec rails webpacker:install
bundle exec rails webpacker:compile
bundle exec rake
env: NODE_OPTIONS: --openssl-legacy-provider

Check failure on line 31 in .github/workflows/ruby.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ruby.yml

Invalid workflow file

You have an error in your yaml syntax on line 31