Skip to content

remove logs

remove logs #54

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Ruby
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
OB_CLIENT_ID: ${{ secrets.OB_CLIENT_ID }}
OB_CLIENT_SECRET: ${{ secrets.OB_CLIENT_SECRET }}
DATABASE_URL: postgres://localhost:5432
RAILS_ENV: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.6
env:
POSTGRES_USER: ${{ env.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
ports: ["5432:5432"]
options: --health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1.0"
bundler-cache: true
- name: Install deps
run: bundle install --retry 3
- name: Setup Database
run: |
bundle exec rails db:create
bundle exec rails db:migrate
- name: Run tests
run: bin/rails test