Skip to content

Removes existing docs #1071

Removes existing docs

Removes existing docs #1071

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Build - 3.3.0
on:
pull_request:
branches:
- master
- develop
- '[0-9].[0-9]'
- '[0-9].[0-9].[0-9]'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.3.0]
env:
DATABASE_URL: mysql2://[email protected]:3800/myapp_test
steps:
- uses: actions/checkout@v2
- name: Start MySQL
uses: cbaudouinjr/[email protected]
with:
host port: 3800
container port: 3800
mysql timezone: America/New_York
mysql version: '5.7'
mysql database: 'myapp_test'
- name: Update and install packages
run: |
sudo apt-get update
sudo apt-get install -y libtool
sudo apt-get install -y libyaml-dev
sudo apt-get install -y build-essential
sudo apt-get install -y libxslt-dev
sudo apt-get install -y libxml2-dev
sudo apt-get install -y default-libmysqlclient-dev
sudo apt-get install -y default-mysql-client
- name: Set up Ruby
env:
ImageOS: ubuntu18
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
# This version tag came with the Ruby build script built by GitHub. @v1 does not work.
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install gems
run: |
gem install pkg-config
bundle config build.nokogiri --use-system-libraries
bundle install
- name: Setup database
env:
RAILS_ENV: test
run: |
bin/rails db:migrate
- name: Run tests
run: bundle exec rake