Skip to content

Commit

Permalink
Migrate to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren committed Apr 1, 2024
1 parent 0cb6b25 commit 90476a0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 24 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

0 comments on commit 90476a0

Please sign in to comment.