Benoit Daloze
7a6302104f
Workaround missing require 'logger' in Rails
2025-01-17 10:00:35 +01:00
Shizuo Fujita
540484a3c0
Fixes the latest rubygems installation error with Ruby 3.0
...
If set up `rubygems: latest` in workflow,
it will cause the error with Ruby 3.0 because the latest rubygems does not support Ruby 3.0.
Ref. https://rubygems.org/gems/rubygems-update
### Error message
```
Updating RubyGems
/opt/hostedtoolcache/Ruby/3.0.7/x64/bin/gem --version
3.2.33
Default RubyGems version is 3.2.33
Updating RubyGems to latest version
/opt/hostedtoolcache/Ruby/3.0.7/x64/bin/gem update --system
ERROR: Error installing rubygems-update:
rubygems-update-3.6.1 requires Ruby version >= 3.1.0. The current ruby version is 3.0.7.220.
ERROR: While executing gem ... (NoMethodError)
undefined method `version' for nil:NilClass
Updating rubygems-update
Took 2.86 seconds
Error: The process '/opt/hostedtoolcache/Ruby/3.0.7/x64/bin/gem' failed with exit code 1
```
### How to reproduce
```
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
rubygems: latest
```
2024-12-23 19:21:18 +01:00
Benoit Daloze
2e3487c00e
No more macos-12 runners, minimum for macos-amd64 is now macos-13
2024-12-06 22:29:00 +01:00
Benoit Daloze
217c988b8c
Skip which bundle test on mingw, mswin and ucrt
...
* See https://github.com/ruby/setup-ruby/issues/658
2024-11-05 12:06:00 +01:00
Benoit Daloze
4d521eadc8
Fix exclusion
2024-10-11 11:59:43 +02:00
Benoit Daloze
f269373437
Test the last 3.4 preview in CI
2024-10-07 20:33:19 +02:00
Samuel Williams
27ceac8081
Add asan to the test matrix.
2024-10-05 20:46:21 +02:00
Benoit Daloze
17f5c914a0
Add support for macos-15 and all future macos runners
...
* Fixes https://github.com/ruby/setup-ruby/issues/647
2024-09-25 22:00:58 +02:00
Benoit Daloze
3a77c29278
Fix updating the v1 branch on automated releases
...
* Fixes https://github.com/ruby/setup-ruby/issues/618
2024-07-06 11:54:45 +02:00
Hiroshi SHIBATA
382d786c8a
Removed macos-arm-oss from GitHub Actions
2024-07-05 12:11:07 +02:00
Benoit Daloze
c48bc1e88d
macos-11 is no longer available
2024-06-30 12:41:55 +02:00
Benoit Daloze
af43264f2b
GH_REPO and GH_TOKEN must be set
2024-06-27 15:41:42 +02:00
Benoit Daloze
3251c5c21b
Add workflow to automatically create a release
2024-06-27 15:23:12 +02:00
Kenichi Kamiya
7dc18ff0ca
Exclude ruby 1.9 and 2.2 test for ubuntu-24.04
...
https://github.com/ruby/setup-ruby/pull/596#discussion_r1606047680
2024-05-20 17:46:39 +08:00
Kenichi Kamiya
868b8c0873
Test against ubuntu-24.04 runner
2024-05-20 17:46:39 +08:00
Benoit Daloze
22fdc77bf4
Clarify comment in test.yml
2024-01-31 16:00:45 +01:00
なつき
e8677f0f39
Add support for macos-14-arm64 GitHub runners
2024-01-31 15:57:37 +01:00
Benoit Daloze
bd03e04863
Test 3.3 on Windows
2024-01-25 17:18:05 +01:00
MSP-Greg
558057564b
Add windows-toolchain input
2024-01-22 11:07:31 +01:00
Benoit Daloze
360dc864d5
Shorten job title to fit in GH UI
2023-12-28 12:21:45 +01:00
MSP-Greg
251b9047a8
Fixup rubygems: latest to work with Rubies < 2.3
2023-12-28 13:20:54 +02:00
Benoit Daloze
961f85197f
Rename workflow and variable for clarity
2023-12-27 20:27:45 +01:00
MSP-Greg
28f930222f
Fixup Rubygems latest
2023-12-27 21:23:02 +02:00
Benoit Daloze
a05e47355e
Java is now available on macos-arm-oss
2023-10-21 12:52:54 +02:00
Benoit Daloze
9f4cc09ff9
3.1 is now available on macos-arm64
2023-10-12 12:54:54 +02:00
Benoit Daloze
5cfe23c062
Add support for macos-13-arm64 GitHub runners
2023-10-11 18:58:56 +02:00
Benoit Daloze
9aede54d98
Exclude known failing combination
...
* See https://github.com/ruby/setup-ruby/issues/496
2023-09-19 12:28:45 +02:00
Lorenzo Zabot
4f1c6a74a7
Update actions/checkout to v4
2023-09-06 11:47:06 +02:00
Benoit Daloze
7d546f4868
Test 3.3 preview
2023-05-14 14:27:22 +02:00
Benoit Daloze
6cecb48364
Use ubuntu-20.04 for test using Ruby 2.2
...
* https://github.com/ruby/setup-ruby/issues/496#issuecomment-1520667671
2023-04-24 22:02:59 +02:00
Dan Federman
4d88f85d08
Add support for macos-13 ( #501 )
2023-04-24 21:44:28 +02:00
Hiroshi SHIBATA
92aece5fc9
Also removed deprecated ubuntu-18.04
2023-02-27 19:56:46 +01:00
Hiroshi SHIBATA
db791aad7b
Removed macos-10.15 because it will be removed at 2023-03-31
2023-02-27 19:56:46 +01:00
Benoit Daloze
eb7f94ffae
Consider Bundler pre and rc versions valid, just exclude .dev
...
* Fixes https://github.com/ruby/setup-ruby/issues/439
2023-01-06 12:49:10 +01:00
Benoit Daloze
ad718faf7a
Break long line in workflow
2022-12-30 15:59:58 +01:00
Lars Kanis
f78d71faf4
Add RubyInstaller-3.2.0-1 for Windows
2022-12-30 15:39:39 +01:00
David Rodríguez
8a6667e214
Reenable fixed RubyGems test
...
Use the same Ruby as the previous test, since it's very related, but
use a newer RubyGems to force the upgrade case.
2022-12-26 13:56:15 +01:00
Benoit Daloze
ee2113536a
Test 3.2 RCs
2022-12-06 07:08:21 -06:00
Benoit Daloze
7a0bff23cb
Disable failing test on old Ruby version
...
* See https://github.com/ruby/setup-ruby/issues/405
2022-11-25 17:20:21 +01:00
Benoit Daloze
4887fd8753
Ignore Bundler dev version in Gemfile.lock
...
* Fixes https://github.com/ruby/setup-ruby/issues/394
2022-11-22 16:22:30 +01:00
Benoit Daloze
0b2c3ee702
Add test for when there is no Gemfile
2022-08-27 10:29:11 +02:00
Benoit Daloze
0a29871fe2
which rake does not work on Windows on Ruby 2.5+
2022-08-23 20:43:55 +02:00
Benoit Daloze
3804ad4ff2
Run which test on all platforms in shell: bash
2022-08-21 12:42:53 +02:00
Benoit Daloze
87ccb7599f
Workaround the CRuby bug of bin/bundle in bash on Windows
...
* Fixes https://github.com/ruby/setup-ruby/issues/371
* See https://bugs.ruby-lang.org/issues/18970
2022-08-20 16:14:03 +02:00
Benoit Daloze
19b31c7064
Test that bundle is available in the bash shell
2022-08-20 16:04:04 +02:00
Benoit Daloze
6148f408d3
Test on ubuntu-22.04
2022-08-06 16:55:13 +02:00
Benoit Daloze
8b5af312bd
Fix permissions of release job
2022-07-29 18:24:39 +02:00
Benoit Daloze
3882fb634e
Test gem github: in a Gemfile
2022-07-29 18:16:42 +02:00
Benoit Daloze
d6ebfae201
Use read-only permissions for the test workflow
2022-07-27 19:16:35 +02:00
neilnaveen
3325fe2d4e
chore: Set permissions for GitHub actions
...
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ )
Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com >
2022-07-27 19:15:28 +02:00