From 57f04a0f645431e58145fee26b69214a46d451f9 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Fri, 30 Dec 2022 08:08:06 -0300 Subject: [PATCH 1/5] Add more Ruby versions to GitHub Actions matrix --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fe8d48..3fcf9f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,17 +10,20 @@ jobs: fail-fast: false matrix: ruby-version: + - head - '3.2' - '3.1' - '3.0' - '2.7' - '2.6' - '2.5' + - '2.4' - '2.3' - - '2.2' - - '2.1' - - jruby-9.3 - - jruby-9.2 + - jruby + - jruby-head + - truffleruby + - truffleruby-head + - truffleruby+graalvm steps: - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} From 126a41dfe5595b756b3e28301d2c312ba2c8dd36 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sat, 31 Dec 2022 13:21:05 -0300 Subject: [PATCH 2/5] Runs GH Actions from an OS matrix So we include Mac and Windows to it. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fcf9f5..9eab7ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,11 +4,10 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-latest - strategy: fail-fast: false matrix: + os: [ubuntu-latest] ruby-version: - head - '3.2' @@ -24,6 +23,7 @@ jobs: - truffleruby - truffleruby-head - truffleruby+graalvm + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Set up Ruby ${{ matrix.ruby-version }} From b8fe942f022b3b5db9577a90f56eaa246fb1a776 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sat, 31 Dec 2022 13:21:54 -0300 Subject: [PATCH 3/5] Add MacOS and Windows to the test matrix --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eab7ae..0553039 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,21 @@ jobs: - truffleruby - truffleruby-head - truffleruby+graalvm + include: + - os: windows-latest + ruby-version: head + - os: windows-latest + ruby-version: '3.1' + - os: windows-latest + ruby-version: mingw + - os: windows-latest + ruby-version: mswin + - os: windows-latest + ruby-version: ucrt + - os: macos-latest + ruby-version: 'head' + - os: macos-latest + ruby-version: '3.1' runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 From 57f202cb0ee9647879652e95c6d083fcdcec4cf4 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sat, 31 Dec 2022 07:39:52 -0300 Subject: [PATCH 4/5] Temporarily remove pronto-poper because of incompatibility Let it commented out as a reminder. --- Gemfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Gemfile b/Gemfile index bae1b36..f82b1e6 100644 --- a/Gemfile +++ b/Gemfile @@ -16,6 +16,7 @@ group :code_quality do gem "flog", require: false gem "pronto", require: false, platform: :ruby gem "pronto-flay", require: false, platform: :ruby + # gem "pronto-poper", require: false, platform: :ruby gem "pronto-reek", require: false, platform: :ruby gem "pronto-rubocop", require: false, platform: :ruby end From 03e39a6253c0cc88761903044f5407e6a91950e7 Mon Sep 17 00:00:00 2001 From: "Abinoam P. Marques Jr" Date: Sat, 31 Dec 2022 07:45:15 -0300 Subject: [PATCH 5/5] Remove platform restriction for simplecov --- Gemfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index f82b1e6..1b13d38 100644 --- a/Gemfile +++ b/Gemfile @@ -7,10 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } # Specify your gem's dependencies in tgem.gemspec gemspec -platform :ruby do - # Running only on MRI - gem "simplecov", group: :test -end +gem "simplecov", group: :test, require: false group :code_quality do gem "flog", require: false