Skip to content

Commit

Permalink
Merge pull request #90 from fluent/migrate-ci
Browse files Browse the repository at this point in the history
Migrate CI from Travis CI to GitHub Actions
  • Loading branch information
cosmo0920 authored Jan 15, 2021
2 parents fb22922 + 1436351 commit 18aeb67
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: linux
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby:
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
os:
- ubuntu-latest
name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: unit testing
env:
CI: true
run: |
gem install bundler rake
bundle install --jobs 4 --retry 3
bundle exec rake spec
1 change: 1 addition & 0 deletions fluent-logger.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rspec-its', '>= 1.1.0'
gem.add_development_dependency 'simplecov', '>= 0.5.4'
gem.add_development_dependency 'timecop', '>= 0.3.0'
gem.add_development_dependency 'webrick'
end

0 comments on commit 18aeb67

Please sign in to comment.