-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
97 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
types: [ opened, synchronize ] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- ruby_version: '2.7' | ||
gemfile: rails_7_0 | ||
upload_coverage: true | ||
- ruby_version: '2.5' | ||
gemfile: rails_6_1 | ||
- ruby_version: '2.3' | ||
gemfile: rails_5_0 | ||
- ruby_version: '2.3' | ||
gemfile: rails_4_2 | ||
bundler: '1' | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
CI: 1 | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/spec/gemfiles/${{ matrix.gemfile }}.gemfile | ||
steps: | ||
- name: "Determine whether to upload coverage" | ||
if: ${{ env.CC_TEST_REPORTER_ID && matrix.upload_coverage }} | ||
run: echo COVERAGE=1 >> $GITHUB_ENV | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby ${{ matrix.ruby_version }} and ${{ matrix.gemfile }}.gemfile | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby_version }} | ||
bundler: ${{ matrix.bundler || 'Gemfile.lock' }} | ||
bundler-cache: true | ||
- name: Run tests | ||
if: ${{ !env.COVERAGE }} | ||
run: bundle exec rspec --format d | ||
- name: Run tests and upload coverage | ||
uses: paambaati/[email protected] | ||
if: ${{ env.COVERAGE }} | ||
with: | ||
coverageCommand: bundle exec rspec --format d | ||
i18n-tasks: | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/spec/gemfiles/i18n-tasks.gemfile | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby and i18n-tasks.gemfile | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2 | ||
bundler-cache: true | ||
- name: Run i18n-tasks | ||
run: bundle exec i18n-tasks health |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
platform :rbx do | ||
gem 'rubysl', '~> 2.0' | ||
gem 'racc' | ||
end | ||
|
||
if defined?(JRUBY_VERSION) | ||
# JRuby attempts to install v0.9.2 even though jruby's reported required version is too low for it. | ||
gem 'i18n-tasks', '~> 0.8.7' | ||
end | ||
|
||
|
||
if ENV['TRAVIS'] | ||
gem 'codeclimate-test-reporter', group: :test, require: false | ||
else | ||
if !ENV['CI'] | ||
group :test, :development do | ||
gem 'byebug', platform: :mri_21, require: false | ||
gem 'coffee-rails' | ||
end | ||
|
||
group :development do | ||
gem 'puma' | ||
gem 'byebug', platform: [:mri], require: false | ||
end | ||
end | ||
|
||
if ENV['COVERAGE'] | ||
group :test do | ||
gem 'simplecov', require: false | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'i18n-tasks' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
source "http://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
gemspec path: '../..' | ||
eval_gemfile '../../shared.gemfile' | ||
|
||
gem 'rails', '~> 4.2.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source 'http://rubygems.org' | ||
source 'https://rubygems.org' | ||
|
||
gemspec path: '../..' | ||
eval_gemfile '../../shared.gemfile' | ||
|
||
gem 'rails', '~> 5.0.2' | ||
eval_gemfile '../../shared.gemfile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec path: '../..' | ||
eval_gemfile '../../shared.gemfile' | ||
|
||
gem 'rails', '~> 6.1.7' | ||
gem 'puma', '~> 5.6.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec path: '../..' | ||
eval_gemfile '../../shared.gemfile' | ||
|
||
gem 'rails', '~> 7.0.4' | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters