Bump rack from 2.2.8 to 2.2.8.1 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: RSpec | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: RSpec Tests | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11-alpine | |
ports: | |
- "5432:5432" | |
env: | |
POSTGRES_DB: hexarad_test | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: "postgres://postgres:postgresd@localhost:5432/hexarad_test" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
env: | |
BUNDLE_GITHUB__COM: x-access-token:${{ secrets.GITHUB_TOKEN }} | |
with: | |
ruby-version: 3.1.4 | |
bundler-cache: true | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: 6 | |
- name: Run tests | |
env: | |
RAILS_ENV: test | |
DISABLE_PRY: true | |
run: | | |
DISABLE_DEVISE=true bin/rails db :schema:load | |
bundle config set without development capistrano acceptance | |
bundle exec rspec |