Skip to content

Merge pull request #27 from unasuke/ecs-exec #56

Merge pull request #27 from unasuke/ecs-exec

Merge pull request #27 from unasuke/ecs-exec #56

Workflow file for this run

name: test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
rspec:
name: rspec
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.9-bookworm # heroku postgres
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: cfp_app_test
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/cfp_app_test
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: bundle exec rails db:setup
- run: bundle exec rspec