From 710711ecd348dce982ea935718d8e3911c27593b Mon Sep 17 00:00:00 2001 From: Souravgoswami Date: Thu, 26 Sep 2024 02:42:32 +0530 Subject: [PATCH] Add workflow for Ruby 3.1, 3.2 and 3.3 --- .github/workflows/ruby.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 1bc49fb..25c4465 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -60,3 +60,39 @@ jobs: run: rake compile - name: Run tests run: rake test + + - uses: actions/checkout@v4 + - name: Test LibmagicRb with Ruby 3.1 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + - name: Install dependencies + run: bundle install + - name: Run rake compile + run: rake compile + - name: Run tests + run: rake test + + - uses: actions/checkout@v4 + - name: Test LibmagicRb with Ruby 3.2 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2 + - name: Install dependencies + run: bundle install + - name: Run rake compile + run: rake compile + - name: Run tests + run: rake test + + - uses: actions/checkout@v4 + - name: Test LibmagicRb with Ruby 3.3 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.3 + - name: Install dependencies + run: bundle install + - name: Run rake compile + run: rake compile + - name: Run tests + run: rake test