diff --git a/.github/workflows/jruby-nightly.yml b/.github/workflows/jruby-nightly.yml new file mode 100644 index 0000000..afa3d04 --- /dev/null +++ b/.github/workflows/jruby-nightly.yml @@ -0,0 +1,19 @@ +name: JRuby Nightly + +on: push +# on: +# schedule: +# # Checks daily +# - cron: '0 0 * * *' + +jobs: + TestsOnNightly: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rm Gemfile.lock + - uses: ruby/setup-ruby@v1 + with: + ruby-version: jruby-head + bundler-cache: true + - run: bundle exec rspec diff --git a/.github/workflows/truffleruby-nightly.yml b/.github/workflows/truffleruby-nightly.yml new file mode 100644 index 0000000..84da2f0 --- /dev/null +++ b/.github/workflows/truffleruby-nightly.yml @@ -0,0 +1,19 @@ +name: TruffleRuby Nightly + +on: push +# on: +# schedule: +# # Checks daily +# - cron: '0 0 * * *' + +jobs: + TestsOnNightly: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rm Gemfile.lock + - uses: ruby/setup-ruby@v1 + with: + ruby-version: truffleruby-head + bundler-cache: true + - run: bundle exec rspec diff --git a/Gemfile b/Gemfile index e62bdcf..a797eee 100644 --- a/Gemfile +++ b/Gemfile @@ -2,14 +2,19 @@ source "https://rubygems.org" gemspec -gem "byebug" -gem "prettier" -gem "pry" -gem "pry-byebug" gem "rake" gem "rspec" -gem "rubocop" -gem "rubocop-rake" -gem "rubocop-rspec" -gem "simplecov" -gem "solargraph" + +gem "racc" # Needed for JRuby, see https://github.com/jruby/jruby/issues/6581 + +platforms :ruby, :mingw do + gem "byebug" + gem "prettier" + gem "pry" + gem "pry-byebug" + gem "rubocop" + gem "rubocop-rake" + gem "rubocop-rspec" + gem "simplecov" + gem "solargraph" unless RUBY_ENGINE == "truffleruby" +end diff --git a/Gemfile.lock b/Gemfile.lock index 9040052..e4b42bb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -136,13 +136,16 @@ GEM PLATFORMS arm64-darwin-21 + java ruby + unknown DEPENDENCIES byebug prettier pry pry-byebug + racc rake rspec rspec-graphql-integration! diff --git a/README.md b/README.md index ebc56f4..42b1894 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,12 @@ CI + + CI + + + CI +