Skip to content

Commit

Permalink
Merge pull request #164 from payrollhero/github-actions
Browse files Browse the repository at this point in the history
run tests via github actions
  • Loading branch information
mathieujobin committed Aug 4, 2022
2 parents d7601e7 + e94e12e commit b4e3ed6
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 27 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: build

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby:
- 2.7
- 2.6
gemfile:
- rails_5.0.gemfile
- rails_5.0_sprockets4.gemfile
- rails_5.2.gemfile
- rails_5.2_sprockets4.gemfile
- rails_6.0.gemfile
- rails_6.1.gemfile
#- rails_head.gemfile
#- rails_head_sprockets4.gemfile
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
AWS_REGION: us-east1
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions angular-rails-templates.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ Gem::Specification.new do |s|

s.require_paths = ["lib"]

s.add_dependency "railties", ">= 4.2", "< 7"
s.add_dependency "railties", ">= 5.0", "< 7"
s.add_dependency "sprockets", ">= 3.0", '< 5'
s.add_dependency "tilt"

s.add_development_dependency "minitest"
# There is a deprecation warning indicating the build will fail with Minitest 6
s.add_development_dependency "minitest", '< 6'
s.add_development_dependency "capybara"
s.add_development_dependency "uglifier"
end
2 changes: 1 addition & 1 deletion gemfiles/rails_4.2.gemfile → gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem "rails", "~> 4.2.0"
gem "rails", "~> 5.2.7"
gem "slim-rails"
gem "haml"
gem "kramdown"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem "rails", "~> 4.2.0"
gem "rails", "~> 5.2.7"
gem "sprockets", "~> 4.0.0.beta2"
gem "slim-rails"
gem "haml"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem "rails", ">= 6.0.0", "< 7"
gem "rails", "~> 6.0.4"
gem "slim-rails"
gem "haml"
gem "kramdown"
Expand Down
10 changes: 10 additions & 0 deletions gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
source "https://rubygems.org"

gem "rails", ">= 6.1.0", "< 7"
gem "slim-rails"
gem "haml"
gem "kramdown"

gem 'coveralls', require: false

gemspec :path => ".././"

0 comments on commit b4e3ed6

Please sign in to comment.