From 89dd49bec76f45aa2a3f261cede68e8f09c4977e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 6 Oct 2022 17:14:26 +0900 Subject: [PATCH 1/3] Update Ruby versions on GHA with ci_versions/all.json --- .github/workflows/test.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e2e7fa2..9d49d8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,11 +3,21 @@ name: test on: [push, pull_request] jobs: - build: + ruby-versions: + runs-on: ubuntu-latest + outputs: + versions: ${{ steps.versions.outputs.value }} + steps: + - id: versions + run: | + versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.5"]') + echo "::set-output name=value::${versions}" + test: + needs: ruby-versions name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: - ruby: [ '3.0', 2.7, 2.6, 2.5, head ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} os: [ ubuntu-latest, macos-latest ] runs-on: ${{ matrix.os }} steps: @@ -16,6 +26,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - bundler-cache: true + - name: Install dependencies + run: bundle install - name: Run test - run: bundle exec rake test + run: rake test From af68203a6ecad685fe5cfa6cdfa304f105412be5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 6 Oct 2022 17:40:55 +0900 Subject: [PATCH 2/3] TruffleRuby is not working --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9d49d8c..7d7c90c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: steps: - id: versions run: | - versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/all.json' | jq -c '. + ["2.5"]') + versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/cruby-jruby.json' | jq -c '. + ["2.5"]') echo "::set-output name=value::${versions}" test: needs: ruby-versions From 957c493352ca895cfa55653da6029ea818c2d499 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 6 Oct 2022 17:49:37 +0900 Subject: [PATCH 3/3] JRuby is also not working --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7d7c90c..8b8ac5e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,7 +10,7 @@ jobs: steps: - id: versions run: | - versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/cruby-jruby.json' | jq -c '. + ["2.5"]') + versions=$(curl -s 'https://cache.ruby-lang.org/pub/misc/ci_versions/cruby.json' | jq -c '. + ["2.5"]') echo "::set-output name=value::${versions}" test: needs: ruby-versions