Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoav Aner authored and eebs committed Jan 15, 2021
1 parent eeb5d40 commit 584da78
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 32 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI Tests

on:
push:
branches: "*"
pull_request:
branches: "*"

jobs:
test:
name: "Ruby ${{ matrix.ruby }}, Rails ${{ matrix.gemfile }}"

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
gemfile:
- "5.0"
- "5.1"
- "5.2"
- "6.0"
- "6.1"
ruby:
- "2.4.9"
- "2.5.7"
- "2.6.5"
- "2.7.2"
exclude:
- gemfile: "6.0"
ruby: "2.4.9"
- gemfile: "6.1"
ruby: "2.4.9"

env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile
RAILS_ENV: test

steps:
- uses: actions/checkout@v2

- name: "Install Ruby ${{ matrix.ruby }}"
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: "Reset app database"
run: bundle exec rake dummy:db:reset

- name: "Run tests"
run: bundle exec rake
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

0 comments on commit 584da78

Please sign in to comment.