Skip to content

0.9.8

0.9.8 #230

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
CC_TEST_REPORTER_ID: f7dc26d97d2d636e50bcb811728bdbc9956de60045a2ed68c74c82a0d70ae77a
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "3.2.2"
steps:
- uses: actions/checkout@v3
- name: Install prerequisites
run: |
sudo apt-get install -y libvips
sudo apt-get install -yqq libpq-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Set up database
run: |
bundle exec rake db:create
bundle exec rake db:migrate
- name: Run test cases
run: bundle exec rspec
- name: Publish code coverage
uses: paambaati/codeclimate-action@v4.0.0
# - name: Rubocop
# run: bundle exec rubocop --autocorrect