Skip to content

Implement stock price update job and test. Supports #146 #45

Implement stock price update job and test. Supports #146

Implement stock price update job and test. Supports #146 #45

Workflow file for this run

---
name: "Continuous Integration"
on:
push:
branches: ['main']
pull_request:
types: ['opened', 'reopened', 'synchronize', 'unlocked']
jobs:
# NOTE: @abachman
# In order to move a little faster for the Ruby for Good weekend event, I'm
# commenting out the ruby-lint job. We can re-enable it after the event
# once we've had a chance to let the dust settle and run `standardrb --fix`
# on everything.
# ruby-lint:
# name: Ruby Lint
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Set up Ruby
# uses: ruby/[email protected]
# with:
# ruby-version: '3.2.3'
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
# - name: Ruby Lint
# run: bundle exec standardrb --parallel -f github
rails-test:
name: Rails Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
ports:
- "5432:5432"
env:
POSTGRES_DB: sif
POSTGRES_USER: sif
POSTGRES_PASSWORD: password
redis:
image: redis:7.0
env:
RAILS_ENV: test
DATABASE_URL: "postgres://sif:password@localhost:5432/sif"
REDIS_URL: "redis://localhost:6379/1"
BROWSERSLIST_IGNORE_OLD_DATA: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/[email protected]
with:
ruby-version: '3.2.3'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Set up database
run: bin/rails db:setup
- name: Run tests
run: bin/rails test