diff --git a/.cspell.dictionary.txt b/.cspell.dictionary.txt index 5e65ebc..d27b648 100644 --- a/.cspell.dictionary.txt +++ b/.cspell.dictionary.txt @@ -1,6 +1,7 @@ codecov fcontext fdescribe +racc rbprettier rubocop srand diff --git a/.github/workflows/jruby-nightly.yml b/.github/workflows/jruby-nightly.yml new file mode 100644 index 0000000..e8fadb6 --- /dev/null +++ b/.github/workflows/jruby-nightly.yml @@ -0,0 +1,18 @@ +name: JRuby Nightly + +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..78e623d --- /dev/null +++ b/.github/workflows/truffleruby-nightly.yml @@ -0,0 +1,18 @@ +name: TruffleRuby Nightly + +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..7b53495 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 :mri do + gem "byebug" + gem "prettier" + gem "pry" + gem "pry-byebug" + gem "rubocop" + gem "rubocop-rake" + gem "rubocop-rspec" + gem "simplecov" + gem "solargraph" +end diff --git a/Gemfile.lock b/Gemfile.lock index 9040052..ef8d321 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -143,6 +143,7 @@ DEPENDENCIES 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 @@ + + + + + +
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e83152d..8506dda 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,12 +1,16 @@ -require "simplecov" -require "byebug" -require "pry" -require "pry-byebug" +begin + require "simplecov" + require "byebug" + require "pry" + require "pry-byebug" -SimpleCov.start do - enable_coverage :branch - primary_coverage :branch - minimum_coverage 100 + SimpleCov.start do + enable_coverage :branch + primary_coverage :branch + minimum_coverage 100 + end +rescue LoadError + # In TruffleRuby and JRuby, those gems are not installed. end require_relative "support/graphql_integration"