Bump rspec-rails from 6.1.2 to 7.0.1 #423
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: Run rspec | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
RAILS_ENV: test | |
BUNDLE_FORCE_RUBY_PLATFORM: true | |
DEBIAN_FRONTEND: noninteractive | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: opensuse | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install preview generators | |
run: sudo apt-get install libvips42 poppler-utils shared-mime-info | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1' | |
bundler-cache: true | |
- name: Prepare environment | |
run: | | |
echo "127.0.0.1 db" | sudo tee /etc/hosts | |
cp config/database.sample.yml config/database.yml | |
cp config/site.sample.yml config/site.yml | |
cp config/storage.sample.yml config/storage.yml | |
bundler exec rails db:create | |
bundler exec rails db:migrate | |
- name: Run rspec | |
run: bundler exec rspec | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |