Merge pull request #107 from Anrop/dependabot/bundler/loofah-2.22.0 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |