Skip to content

Bump actions/checkout from 2 to 4 #133

Bump actions/checkout from 2 to 4

Bump actions/checkout from 2 to 4 #133

Workflow file for this run

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@v4
- 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