Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ランキングページ遷移を強制する環境変数を定義する #166

ランキングページ遷移を強制する環境変数を定義する

ランキングページ遷移を強制する環境変数を定義する #166

Workflow file for this run

name: CI flow for Amazon ECS
on:
pull_request:
jobs:
rspec:
name: Rspec
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Install libvips
run: |
sudo apt update -y
sudo apt install -y libvips
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16.8
- name: Run precompile
run: RAILS_ENV=test bundle exec rails assets:precompile
- name: Database create and migrate
run: |
cp config/database.yml.ci config/database.yml
RAILS_ENV=test bundle exec rails db:create
RAILS_ENV=test bundle exec rails db:migrate
- name: Run Rspec
run: bundle exec rspec
env:
GOOGLE_MAP_API_KEY: ${{ secrets.GOOGLE_MAP_API_KEY }}
rubocop:
name: RuboCop
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop