-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* allow GET requests in specs This is not something anyone should do in production. But in tests, this allows us to bypass CSRF. * remove Gemfile.lock So we're not constrained on a specific bundler version. Also, Gemfile.lock won't be used when this gem is added as a dependency anyway. If we require a specific version, it should be set in the gemspec file. * relax bundler version 1.9 is already pretty old. There's no reason not to be able to run a newer version * setup ruby versions matrix * upgrade listen So it runs a version supported by ruby 3.0 * test ruby 3.0
- Loading branch information
Showing
6 changed files
with
38 additions
and
175 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 |
---|---|---|
@@ -1,22 +1,44 @@ | ||
version: 2.1 | ||
matrix_rubyversions: &matrix_rubyversions | ||
matrix: | ||
parameters: | ||
rubyversion: ["2.5", "2.6", "2.7", "3.0"] | ||
# Default version of ruby to use for lint and publishing | ||
default_rubyversion: &default_rubyversion "2.7" | ||
|
||
executors: | ||
ruby: | ||
parameters: | ||
rubyversion: | ||
type: string | ||
default: *default_rubyversion | ||
docker: | ||
- image: circleci/ruby:<< parameters.rubyversion >> | ||
|
||
jobs: | ||
run-tests: | ||
docker: | ||
- image: circleci/ruby:2.5.7-buster | ||
parameters: | ||
rubyversion: | ||
type: string | ||
default: *default_rubyversion | ||
executor: | ||
name: ruby | ||
rubyversion: "<< parameters.rubyversion >>" | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- gems-v2-{{ checksum "Gemfile.lock" }} | ||
- gems-v2-{{ checksum "Gemfile" }} | ||
- gems-v2- | ||
- run: bundle check || bundle install | ||
- save_cache: | ||
key: gems-v2--{{ checksum "Gemfile.lock" }} | ||
key: gems-v2--{{ checksum "Gemfile" }} | ||
paths: | ||
- vendor/bundle | ||
- run: bundle exec rake spec | ||
|
||
workflows: | ||
tests: | ||
jobs: | ||
- run-tests | ||
- run-tests: | ||
<<: *matrix_rubyversions |
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 |
---|---|---|
|
@@ -10,3 +10,5 @@ tmp/ | |
## Environment normalization: | ||
/.bundle | ||
/vendor/bundle | ||
|
||
Gemfile.lock |
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