restore-keys: |
yarn-${{ env.os }}-
- name: Install node modules
- run: bundle exec rails yarn:install
+ run: bundle exec bin/yarn install
- name: Create dummy database configuration
run: cp config/example.database.yml config/database.yml
- name: Run eslint
- name: Export javascript strings
run: bundle exec rails i18n:js:export
- name: Install node modules
- run: bundle exec rails yarn:install
+ run: bundle exec bin/yarn install
- name: Compile assets
run: bundle exec rails assets:precompile
- name: Run tests
RUN gem install bundler \
&& bundle install
-# Install NodeJS packages using yarnpkg
-# `bundle exec rails yarn:install` will not work
+# Install NodeJS packages using yarn
ADD package.json yarn.lock /app/
-RUN yarnpkg --ignore-engines install
+ADD bin/yarn /app/bin/
+RUN bundle exec bin/yarn install
We use [Yarn](https://yarnpkg.com/) to manage the Node.js modules required for the project.
```
-bundle exec rails yarn:install
+bundle exec bin/yarn install
```
## Prepare local settings file
# do bundle install as a convenience
bundle install --retry=10 --jobs=2
# do yarn install as a convenience
-bundle exec rake yarn:install
+bundle exec bin/yarn install
# create user and database for openstreetmap-website
db_user_exists=`sudo -u postgres psql postgres -tAc "select 1 from pg_roles where rolname='vagrant'"`
if [ "$db_user_exists" != "1" ]; then