Skip to content

Commit f97f9e1

Browse files
committed
run tests via github actions
1 parent d7601e7 commit f97f9e1

File tree

6 files changed

+73
-23
lines changed

6 files changed

+73
-23
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: build
9+
10+
on: [push, pull_request]
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-20.04
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
ruby:
19+
- 2.7
20+
- 2.6
21+
gemfile:
22+
#- rails_4.2.gemfile
23+
#- rails_4.2_sprockets4.gemfile
24+
- rails_5.0.gemfile
25+
- rails_5.0_sprockets4.gemfile
26+
- rails_5.2.gemfile
27+
- rails_5.2_sprockets4.gemfile
28+
- rails_6.0.gemfile
29+
- rails_6.1.gemfile
30+
#- rails_head.gemfile
31+
#- rails_head_sprockets4.gemfile
32+
env:
33+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
34+
AWS_REGION: us-east1
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: ruby/setup-ruby@v1
38+
with:
39+
ruby-version: ${{ matrix.ruby }}
40+
bundler-cache: true
41+
- run: bundle exec rake test

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

gemfiles/rails_5.2.gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source "https://rubygems.org"
2+
3+
gem "rails", "~> 5.2.7"
4+
gem "slim-rails"
5+
gem "haml"
6+
gem "kramdown"
7+
8+
gem 'coveralls', require: false
9+
10+
gemspec :path => ".././"

gemfiles/rails_5.2_sprockets4.gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source "https://rubygems.org"
2+
3+
gem "rails", "~> 5.2.7"
4+
gem "sprockets", "~> 4.0.0.beta2"
5+
gem "slim-rails"
6+
gem "haml"
7+
gem "kramdown"
8+
9+
gem 'coveralls', require: false
10+
11+
gemspec :path => ".././"

gemfiles/rails_6.0.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org"
22

3-
gem "rails", ">= 6.0.0", "< 7"
3+
gem "rails", "~> 6.0.4"
44
gem "slim-rails"
55
gem "haml"
66
gem "kramdown"

gemfiles/rails_6.1.gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source "https://rubygems.org"
2+
3+
gem "rails", ">= 6.1.0", "< 7"
4+
gem "slim-rails"
5+
gem "haml"
6+
gem "kramdown"
7+
8+
gem 'coveralls', require: false
9+
10+
gemspec :path => ".././"

0 commit comments

Comments
 (0)