Commit Graph

22 Commits

Author SHA1 Message Date
Jean Boussier d9d8dcc6ba
Add Ruby 3.1 support
Add net-smtp as a dependency for Ruby 3.1 compatibility

It was recently removed from the default gems:

  - https://bugs.ruby-lang.org/issues/17873
  - https://github.com/ruby/ruby/pull/4530

Also add net-imap and net-pop to the gemspec

This dependencies introduces `strscan` as a subdependency, but JRuby
only has prerelease support for it. Make sure the prerelease is
properly picked up by our tests by adding it to the `Gemfile`.
2022-04-21 17:59:19 +02:00
David Rodríguez 355e3bb089
Switch to truffleruby-head
The released version of `truffleruby` does not work with old versions of
Bundler. However, it's not possible to specify a custom version of
Bundler in truffleruby, because the `ruby/setup-ruby` will ignore that
in the case of `truffleruby-22.0` (the current release) That's in my
opinion an issue with `ruby/setup-ruby` because it should respect user's
choice when it's explicit. But it's not possible to change that because
it was an explicit choice of that library.

So as an alternative solution, use `truffleruby-head`, which apparently
does not have the issue.
2022-04-21 14:40:25 +02:00
David Rodríguez 95f54ab976
Use a RubyGems version in CI that supports Psych 4
The default RubyGems version on Ruby 2.5 has issues with it.
2022-04-21 14:03:52 +02:00
David Rodríguez eb032a8649
Allow failures on truffleruby
It's failing consistently, and doesn't seem mail's fault.
2022-04-19 14:48:03 +02:00
David Rodríguez b33d0bc6aa
No need to use docker images now
The standard `ruby/setup-ruby` action has all rubies that we need and
has the added advantages of builtin gem caching and providing an up to
date version of TruffleRuby, which behaves better.
2022-04-19 14:48:03 +02:00
David Rodríguez 8f5c5e8ee8
Use longer timeout on TruffleRuby
So that it doesn't timeout but fails in a standard way.
2022-04-19 14:48:03 +02:00
David Rodríguez c08d569105
Drop support for rubies under 2.5 2022-04-19 14:48:01 +02:00
Lewis Buckley 6e5db59a34 CI with ActionMailer
Set Ruby version for CI

Run the ActionMailer tests, not mail

CD into correct directory
2021-10-22 08:36:41 -07:00
Lewis Buckley 78321e7474
Support act for running the suite locally on all Ruby versions (#1455)
So you can run GitHub actions locally with https://github.com/nektos/act
2021-10-20 10:14:17 -07:00
Lewis Buckley 60bce4f8c1
Use bundler 1.17.3 for ruby 1.8.7 2021-10-09 14:10:54 +01:00
Lewis Buckley a5a6880d42
Alternative 1.8.7 image 2021-10-09 14:09:47 +01:00
Lewis Buckley 356a01e6ef
Add Ruby 1.8.7 2021-10-09 14:08:26 +01:00
Lewis Buckley 08a69da241
Revert to using docker for truffleruby and add a timeout 2021-10-09 13:59:38 +01:00
Lewis Buckley 45dbf6d4cb
Seperate job for truffleruby 2021-10-09 13:55:18 +01:00
Lewis Buckley fea8ed20af
Update CI badge to use GitHub Actions; prefer rake spec 2021-10-09 13:45:13 +01:00
Lewis Buckley 23249f894f
Try bitnami/jruby 2021-10-09 13:35:49 +01:00
Lewis Buckley 423f9baa9d
Use CircleCI jruby image so we get git 2021-10-09 13:32:22 +01:00
Lewis Buckley 27f1b4f319
Add TruffleRuby and JRuby to CI 2021-10-09 13:26:44 +01:00
Lewis Buckley 25d221a0c1
Use format to concat string 2021-10-09 13:10:54 +01:00
Lewis Buckley e8c03bfa5d
Simplify syntax for bundler version 2021-10-09 13:08:56 +01:00
Lewis Buckley 512bb9f2ec
Rename jobs 2021-10-09 11:36:15 +01:00
Lewis Buckley d4acec086b
Setup GitHub Actions 2021-10-09 11:35:30 +01:00