Skip to content

build(deps): bump rails from 7.2.2 to 8.0.0 #694

build(deps): bump rails from 7.2.2 to 8.0.0

build(deps): bump rails from 7.2.2 to 8.0.0 #694

# 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.
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "run the rspec test suite"
on:
pull_request:
branches: '**'
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
ports:
- "5432:5432"
env:
POSTGRES_DB: staffplan_redux_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
env:
RAILS_ENV: test
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/rails_test"
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Set up database schema
env:
DATABASE_URL: ${{ env.DATABASE_URL }}
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: bin/rails db:create db:schema:load
- name: Precompile Rails assets
env:
DATABASE_URL: ${{ env.DATABASE_URL }}
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: bin/rails assets:precompile
- name: Run tests
env:
DATABASE_URL: ${{ env.DATABASE_URL }}
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: bundle exec rspec