Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI experiments #59

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use ruby/setup-ruby action and test app Gemfile for CI
grncdr committed May 14, 2023

Verified

This commit was signed with the committer’s verified signature.
grncdr Stephen Sugden
commit 47769b343bcef81be3fd84769cacfa1b0bbb748d
29 changes: 21 additions & 8 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -23,20 +23,33 @@ jobs:
solargraph-version:
- "0.48.0"
- "0.49.0"
rails-version:
- "7"
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Cache RVM
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- uses: ruby/setup-ruby@v1
with:
working-directory: spec/rails${{ matrix.rails-version }}
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Cache yardoc
uses: actions/cache@v3
id: rvm
with:
key: ${{ runner.os }}-rvm-${{ matrix.ruby-version }}
key: ${{ runner.os }}-yard-${{ matrix.ruby-version }}-${{ matrix.solargraph-version }}
path: |
/home/runner/.rvm
/home/runner/.yardoc
#/usr/local/rvm/
#- name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Test
run: "/bin/bash ./ci.sh ${{ matrix.ruby-version }} ${{ matrix.solargraph-version}}"
- name: Generate YARD docs
run: cd spec/rails${{ matrix.rails-version }} && bundle exec yard gems

- name: RSpec
run: bundle exec rspec spec/solargraph-rails

34 changes: 0 additions & 34 deletions ci.sh

This file was deleted.

5 changes: 4 additions & 1 deletion solargraph-rails.gemspec
Original file line number Diff line number Diff line change
@@ -2,6 +2,9 @@ lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'solargraph/rails/version'


solargraph_version = (ENV['CI'] && ENV['MATRIX_SOLARGRAPH_VERSION']) || ">= 0.48.0"

Gem::Specification.new do |spec|
spec.name = 'solargraph-rails'
spec.version = Solargraph::Rails::VERSION
@@ -27,6 +30,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 12.3.3'
spec.add_development_dependency 'rspec', '~> 3.0'

spec.add_runtime_dependency 'solargraph'
spec.add_runtime_dependency 'solargraph', solargraph_version
spec.add_runtime_dependency 'activesupport'
end