-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1198 from hibachrach/switch-to-github-actions
Switch to GitHub Actions for testing
- Loading branch information
Showing
7 changed files
with
386 additions
and
392 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,44 @@ | ||
# 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: Ruby | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.7.0 | ||
- 2.6.5 | ||
# TODO restore testing against JRuby w/ therubyrhino | ||
# - jruby-9.3.7.0 | ||
gemfile: | ||
# These have webpacker: | ||
- rails_5.2_no_sprockets | ||
- rails_5.2_no_sprockets_webpacker_3 | ||
- rails_5.2_no_sprockets_webpacker_4 | ||
# These don't have webpacker: | ||
- rails_5.2_sprockets_3 | ||
- rails_5.2_sprockets_4 | ||
runs-on: ubuntu-latest | ||
env: | ||
# $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | ||
# Workaround b/c upgrading Minitest broke some mocking expectations | ||
# having to do with automatic kwarg splatting | ||
MT_KWARGS_HACK: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
# TODO: Impalement caching | ||
# bundler-cache: true | ||
- run: bundle install | ||
- run: bundle exec rake test |
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
Oops, something went wrong.