Skip to content

Commit

Permalink
Add GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
junaruga committed Jan 11, 2021
1 parent e2503dc commit 94a3d5b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on: [push, pull_request]
jobs:
build:
name: >-
${{ matrix.os }} ruby ${{ matrix.ruby }} ${{ matrix.db }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04]
ruby:
- 2.7
db: ['']
include:
- {os: ubuntu-16.04, ruby: 2.4, db: mariadb10.0}
# On the fail-fast: true, it cancels all in-progress jobs
# if any matrix job fails unlike Travis fast_finish.
fail-fast: false
steps:
- uses: actions/checkout@v2
# https://github.com/ruby/setup-ruby
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- if: matrix.db != ''
run: echo 'DB=${{ matrix.db }}' >> $GITHUB_ENV
- run: bash .travis_setup.sh
- run: bundle exec rake
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ group :test do
gem 'rubocop', '~> 0.50.0'
end

group :benchmarks do
group :benchmarks, optional: true do
gem 'activerecord', '>= 3.0'
gem 'benchmark-ips'
gem 'do_mysql'
Expand All @@ -28,7 +28,7 @@ group :benchmarks do
gem 'sequel'
end

group :development do
group :development, optional: true do
gem 'pry'
gem 'rake-compiler-dock', '~> 0.7.0'
end
Expand Down

0 comments on commit 94a3d5b

Please sign in to comment.