Skip to content

Feat/3 create product category optional #7

Feat/3 create product category optional

Feat/3 create product category optional #7

Workflow file for this run

name: Ruby
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
services:
db:
image: postgres:11
ports: [ '5432:5432' ]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: 12345
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.0
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16.18.1
- name: Install and Activate Yarn
run: |
npm install -g yarn
yarn set version 1.22.19
- name: Run the default task
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: 12345
RAILS_ENV: test
run: |
sudo apt-get -yqq install libpq-dev
gem install bundler -v 2.2.29
bundle install
cp config/database.yml.sample config/database.yml
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:seed
bundle exec rails webpacker:install
bundle exec rspec