Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Update dependency puma to v6 #277

Update dependency puma to v6

Update dependency puma to v6 #277

Workflow file for this run

name: CI
on:
push: {}
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
services:
db:
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: video_watch_party_test
POSTGRES_HOST_AUTH_METHOD: trust
image: postgres:11
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Find yarn cache location
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: JS package cache
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: |
yarn install --pure-lockfile
- name: Set up Ruby 2.5.8
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5.8
- name: Ruby gem cache
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install postgres headers
run: sudo apt-get -yqq install libpq-dev
- name: Bundle Install
env:
POSTGRES_USERNAME: postgres
run: |
gem update --system 3.0.3 -N
gem install --no-document bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Tests
env:
RAILS_ENV: test
POSTGRES_USERNAME: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
FORCE_COLOR: true
run: |
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rake spec
bundle exec rubocop