Bump searchcraft to 0.4.1 #101
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: Ruby | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
test_gem: | |
runs-on: ubuntu-latest | |
name: Ruby ${{ matrix.ruby }} | |
strategy: | |
matrix: | |
ruby: | |
- '3.0.6' | |
- '3.2.2' | |
services: | |
postgres: | |
image: postgres:15 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: searchcraft_demo_app_test | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Check signatures | |
run: bundle exec steep check | |
- name: Run standardrb | |
run: bundle exec standardrb | |
- name: Run tests | |
run: bundle exec rake test | |
env: | |
DATABASE_URL: postgres://postgres:password@localhost:5432 | |
test_demo_app: | |
runs-on: ubuntu-latest | |
name: Rails App ${{ matrix.ruby }} | |
strategy: | |
matrix: | |
ruby: | |
- '3.2.2' | |
services: | |
postgres: | |
image: postgres:15 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
POSTGRES_DB: searchcraft_demo_app_test | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
working-directory: demo_app | |
- name: Run tests | |
env: | |
DATABASE_URL: postgres://postgres:password@localhost:5432/searchcraft_demo_app_test | |
RAILS_ENV: test | |
run: | | |
cd demo_app | |
bin/rails test:prepare | |
bin/rails db:test:prepare | |
bin/rails test | |
bin/rails test:system |