Bump active_model_serializers from 0.10.3 to 0.10.14 #139
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: Main | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:9.6 | |
env: | |
POSTGRES_PASSWORD: postgres | |
ports: ["5432:5432"] | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
env: | |
DATABASE_URL: postgres://postgres:postgres@localhost:5432/events-api_test | |
RAILS_ENV: test | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
- uses: actions/[email protected] | |
with: | |
path: vendor/bundle | |
key: gems-${{ hashFiles('Gemfile.lock') }} | |
restore-keys: gems- | |
- name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle config set frozen 'true' | |
bundle install --jobs 4 --retry 3 | |
- name: Set Up Database | |
run: bundle exec rails db:create db:schema:load | |
- name: Run specs | |
run: bundle exec rake |