Skip to content

Commit

Permalink
CI: add Ruby 3.2 to the test matrix (#145)
Browse files Browse the repository at this point in the history
* CI: add Ruby 3.2 to the test matrix

Signed-off-by: Orien Madgwick <[email protected]>

* Resolve deprecation of File.exists?

Signed-off-by: Orien Madgwick <[email protected]>

---------

Signed-off-by: Orien Madgwick <[email protected]>
  • Loading branch information
orien authored Feb 22, 2023
1 parent 2955835 commit 3da0c35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ 2.5, 2.6, 2.7, '3.0', 3.1, jruby-9.3 ]
ruby: [ 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.3 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ 2.6, 2.7, '3.0', 3.1, jruby-9.3 ]
ruby: [ 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.3 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ 2.5, 2.6, 2.7, '3.0', 3.1, jruby-9.3 ]
ruby: [ 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.3 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions opensearch-api/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace :test do
filename = 'tmp/artifacts.json'
`curl -s <placeholder_opensearch_artifact_url> -o #{filename}`

unless File.exists?("./#{filename}")
unless File.exist?("./#{filename}")
STDERR.puts '[!] Couldn\'t download artifacts file'
exit 1
end
Expand All @@ -105,7 +105,7 @@ namespace :test do
puts 'Downloading zip file:'
`curl -s #{zip_url} -o tmp/#{filename}`

unless File.exists?("./tmp/#{filename}")
unless File.exist?("./tmp/#{filename}")
STDERR.puts '[!] Couldn\'t download artifact'
exit 1
end
Expand Down
2 changes: 1 addition & 1 deletion profile/benchmarking/benchmarking_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ namespace :benchmark do
task :download_dataset do
current_path = File.expand_path(File.dirname(__FILE__))
data_path = [current_path, 'data'].join('/')
unless File.exists?([data_path, 'stackoverflow.json'].join('/'))
unless File.exist?([data_path, 'stackoverflow.json'].join('/'))
`gsutil cp gs://clients-team-files/stackoverflow.json "#{data_path}/"`
end
end
Expand Down
2 changes: 1 addition & 1 deletion rake_tasks/test_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace :test do
end
puts "Successfully downloaded #{filename}"

unless File.exists?(filename)
unless File.exist?(filename)
STDERR.puts "[!] Couldn't download #{filename}"
exit 1
end
Expand Down

0 comments on commit 3da0c35

Please sign in to comment.