Skip to content

okay I guess we’ll make the records their own link #247

okay I guess we’ll make the records their own link

okay I guess we’ll make the records their own link #247

Workflow file for this run

name: RSpec
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
BASEBALLBOT_PG_USERNAME: baseballbot
BASEBALLBOT_PG_DATABASE: baseballbot_test
BASEBALLBOT_PG_PASSWORD: password
REDDIT_CLIENT_ID: ""
REDDIT_SECRET: ""
REDDIT_REDIRECT_URI: ""
TZ: America/Los_Angeles
jobs:
test:
# services:
# postgres:
# image: postgres:latest
# env:
# POSTGRES_DB: $BASEBALLBOT_PG_DATABASE
# POSTGRES_PASSWORD: $BASEBALLBOT_PG_PASSWORD
# POSTGRES_PORT: 5432
# POSTGRES_USER: $BASEBALLBOT_PG_USERNAME
# ports:
# - 5432:5432
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
strategy:
fail-fast: false
matrix:
os: [ubuntu]
ruby: [3.3]
runs-on: ${{ matrix.os }}-latest
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
# - name: Install PostgreSQL client
# run: |
# apt-get update
# apt-get install --yes postgresql-client
# - name: Restore database data
# run: |
# sudo -u postgres pg_restore --create --clean -d $BASEBALLBOT_PG_DATABASE --verbose < database.sql
# working-directory: spec
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically:
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake