Skip to content

update video.js from 7.x to 8.x #2813

update video.js from 7.x to 8.x

update video.js from 7.x to 8.x #2813

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]
env:
# these are all referenced in our app's database.yml for test
POSTGRES_HOST: localhost
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
jobs:
tests:
services:
db:
image: postgres:14.3
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports: ['5432:5432']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
# should take ruby version from .ruby-version,
# bundler-cache should be save to use cause we
# have a checked in Gemfile.lock
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get -y install libvips-tools ffmpeg mediainfo poppler-utils tesseract-ocr
- name: Set up app
run: |
RAILS_ENV=test bundle exec rails db:create
yarn install
# This cache probably doesn't actually save us any time, but it hopes to save
# us being throttled by apache foundation servers unhappy that solr_wrapper
# is downloading solr over and over again.
- name: Cache solr install
uses: actions/cache@v3
with:
# these paths specified in .solr_wrapper.yml:
path: |
tmp/solr_dist
key: ${{ runner.os }}-solr-${{ hashFiles('.solr_wrapper.yml') }}
- name: Start test Solr
env:
RAILS_ENV: test
run: |
bundle exec rake solr:start
- name: Run tests
run: |
bundle exec rspec