From 825739be061bef5f302a0ddee8b4b1d0e084ed31 Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Mon, 13 Mar 2023 21:46:28 -0400 Subject: [PATCH] Add Ruby 3.1 and 3.2 to the CI matrix. --- .github/workflows/test.yml | 34 +++++++++++++++++++++++++++++++++- spec/axlsx_request_spec.rb | 2 +- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07817c7..2446b56 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,8 @@ jobs: - "2.6" - "2.7" - "3.0" + - "3.1" + - "3.2" include: - rails: "4.2" @@ -39,18 +41,48 @@ jobs: - rails: "4.2" ruby: "3.0" + - rails: "4.2" + ruby: "3.1" + + - rails: "4.2" + ruby: "3.2" + - rails: "5.0" ruby: "3.0" + - rails: "5.0" + ruby: "3.1" + + - rails: "5.0" + ruby: "3.2" + - rails: "5.1" ruby: "3.0" + - rails: "5.1" + ruby: "3.1" + + - rails: "5.1" + ruby: "3.2" + - rails: "5.2" ruby: "3.0" + - rails: "5.2" + ruby: "3.1" + + - rails: "5.2" + ruby: "3.2" + - rails: "6.0" ruby: "2.4" + - rails: "6.0" + ruby: "3.1" + + - rails: "6.0" + ruby: "3.2" + - rails: "6.1" ruby: "2.4" @@ -67,7 +99,7 @@ jobs: BUNDLE_GEMFILE: ${{ github.workspace }}/spec/gemfiles/Gemfile.rails-${{ matrix.rails }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install ruby uses: ruby/setup-ruby@v1 diff --git a/spec/axlsx_request_spec.rb b/spec/axlsx_request_spec.rb index 008d617..baecec1 100644 --- a/spec/axlsx_request_spec.rb +++ b/spec/axlsx_request_spec.rb @@ -2,7 +2,7 @@ describe 'Caxlsx request', :type => :request do after(:each) do - if File.exists? '/tmp/caxlsx_temp.xlsx' + if File.exist? '/tmp/caxlsx_temp.xlsx' File.unlink '/tmp/caxlsx_temp.xlsx' end end