Merge pull request #260 from rubygems/dependabot/bundler/puma-6.4.2 #222
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: Tests | |
on: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install and start services | |
run: | | |
docker-compose up -d | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0.3' | |
bundler-cache: true | |
- name: Wait for MySQL to boot | |
run: | | |
timeout 30 bash -c 'until mysqladmin ping -h 127.0.0.1 -u root -pshipit; do echo waiting for MySQL; sleep 1; done' | |
- name: Run tests | |
run: | | |
cp config/database.ci.yml config/database.yml | |
bin/rails db:setup test |