Skip to content

Reenable transcript search #150

Reenable transcript search

Reenable transcript search #150

name: Validate Pull Request
on:
pull_request:
branches:
- develop
- main
jobs:
test:
runs-on: ubuntu-latest
env:
RAILS_ENV: test
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: theroot
MYSQL_DATABASE: mdl_test
MYSQL_USER: mdl
MYSQL_PASSWORD: mdl
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
solr:
image: minitex/mdl_solr:latest
ports:
- 8986:8983
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Tesseract
run: |
sudo apt-get update
sudo apt-get install tesseract-ocr
- name: Install Dependencies Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.1.2'
- name: Install Dependencies Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Install Yarn Packages
run: yarn install
- name: Setup DB
run: bin/rails db:schema:load
- name: Run Backend Tests
run: bundle exec rspec --tag ~skip_ci
- name: Upload Capybara Saved Pages
uses: actions/upload-artifact@v3
if: failure()
with:
name: capybara
path: tmp/capybara
- name: Run Frontend Tests
run: npm test