From d15c3b1e80ca12b7809e3ad1dbaa3c95c6e12ff0 Mon Sep 17 00:00:00 2001 From: Igor Zubkov Date: Thu, 10 Apr 2025 22:09:04 +0200 Subject: [PATCH 1/3] Add GitHub Action for RSpec --- .github/workflows/rspec.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/rspec.yml diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml new file mode 100644 index 0000000..2ec973b --- /dev/null +++ b/.github/workflows/rspec.yml @@ -0,0 +1,35 @@ + +name: RSpec + +on: + push: + branches: + - master + pull_request: + branches: + - master + schedule: + - cron: "0 21 * * 6" + +jobs: + rspec: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + ruby: ["3.1", "3.2", "3.3", "3.4"] + + steps: + - uses: actions/checkout@v4 + - run: rm -f Gemfile.lock + - run: rm -f .ruby-version + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + rubygems: latest + bundler: latest + bundler-cache: true + + - run: bundle exec rspec From dc6906776a3d870485e4792188bf049083064133 Mon Sep 17 00:00:00 2001 From: Igor Zubkov Date: Thu, 10 Apr 2025 22:09:33 +0200 Subject: [PATCH 2/3] Add GitHub Action for RSpec on JRuby --- .github/workflows/jruby.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/jruby.yml diff --git a/.github/workflows/jruby.yml b/.github/workflows/jruby.yml new file mode 100644 index 0000000..0fd08f3 --- /dev/null +++ b/.github/workflows/jruby.yml @@ -0,0 +1,37 @@ +name: RSpec on JRuby + +on: + push: + branches: + - master + pull_request: + branches: + - master + schedule: + - cron: "0 21 * * 6" + +env: + JRUBY_OPTS: "--debug" + +jobs: + rspec: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + ruby: ["jruby-9.4", "jruby-head"] + + steps: + - uses: actions/checkout@v4 + - run: rm -f Gemfile.lock + - run: rm -f .ruby-version + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + rubygems: latest + bundler: latest + bundler-cache: true + + - run: bundle exec rspec From fb17389f936b956e255d3993f5be9fc2b4a39405 Mon Sep 17 00:00:00 2001 From: Igor Zubkov Date: Thu, 10 Apr 2025 22:10:06 +0200 Subject: [PATCH 3/3] Add .envrc for direnv --- .envrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..9e13309 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +export JRUBY_OPTS="--debug"