Skip to content

Merge pull request #104 from Anrop/dependabot/bundler/nokogiri-1.13.10 #5

Merge pull request #104 from Anrop/dependabot/bundler/nokogiri-1.13.10

Merge pull request #104 from Anrop/dependabot/bundler/nokogiri-1.13.10 #5

Workflow file for this run

name: "Ruby on Rails CI"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-20.04
services:
mysql:
image: mysql:5.5
ports:
- "3306:3306"
env:
MYSQL_ROOT_PASSWORD: root
env:
RAILS_ENV: test
MYSQL_HOST: 127.0.0.1
MYSQL_USERNAME: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: rails
MYSQL_TEST_DATABASE: rails_test
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup database
run: bundle exec rails db:setup
- name: Run tests
run: bundle exec rspec