Hi all,
I’m running Ruby on Rails 6.0.0 with Webpacker 4.0.0 and Ruby 2.6.0 which are all great but I’m having some problems with the gitlab-ci.yml file.
image: ruby:2.6
services:
- postgres:11
before_script:
- apt-get update -qq && apt-get install
test:
stage: test
before_script:
- apt-get update -qy
- apt-get install -y nodejs
- node -v && npm -v
- npm i yarn
- yarn install --check-files
- yarn config set cache-folder .yarn
script:
- bundle install --path /cache
- bundle exec rake db:create RAILS_ENV=test
- bundle exec rake test
- yarn test
I can’t seem to get npm/node to install and am not sure why that is the case. It’s also pretty slow to debug build files. I haven’t been able to locate any info on the ruby:2.6 docker image and what’s pre installed.
I need to test rspec and jest files which are all in my root spec folder or test folder.
I’d appreciate any guidance on formatting this file, my research hasn’t come up with much.