From b7344ed1379703a873f21c6a6a4fcae73ea1a88c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 14 Jun 2023 16:25:47 +0900 Subject: [PATCH 1/4] Use reusing workflow --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea9f671..4dfe372 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,19 +18,19 @@ jobs: - name: Linting run: bundle exec standardrb + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + engine: cruby + min_version: 2.5 + test: + needs: ruby-versions runs-on: ubuntu-latest strategy: fail-fast: false matrix: - ruby: - - 2.5 - - 2.6 - - 2.7 - - '3.0' - - 3.1 - - 3.2 - - head + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} steps: - name: Checkout code uses: actions/checkout@v3.5.3 From e3a0df10717e18ec2b61fa87012f9b09e75a65c9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 14 Jun 2023 16:31:00 +0900 Subject: [PATCH 2/4] Drop support for EOL versions --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4dfe372..6bd0d90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,6 @@ jobs: uses: ruby/actions/.github/workflows/ruby_versions.yml@master with: engine: cruby - min_version: 2.5 test: needs: ruby-versions From 954778c6a6971f4337e14e48e8c45c5c4e1e1c11 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 14 Jun 2023 16:34:53 +0900 Subject: [PATCH 3/4] Lint with the latest version --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bd0d90..04b07fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,10 +13,12 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.1 + ruby-version: ruby bundler-cache: true - name: Linting run: bundle exec standardrb + env: + RUBYOPT: --disable=syntax_suggest ruby-versions: uses: ruby/actions/.github/workflows/ruby_versions.yml@master From af1228845a3ea727bc61800cadaf72097f9eaa9c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 14 Jun 2023 16:44:17 +0900 Subject: [PATCH 4/4] [DOC] Drop supports for EOL versions --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b079779..453efbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## HEAD (unreleased) +- No longer supports EOL versions of Ruby. + ## 1.1.0 - Handle if/else with comment or empty line in branch (https://github.com/ruby/syntax_suggest/pull/193)