Skip to content

Commit

Permalink
Merge pull request #1291 from MSP-Greg/github-actions-void
Browse files Browse the repository at this point in the history
Add GitHub Actions Windows CI - Ruby 2.4 thru master/trunk.
  • Loading branch information
lsegal committed Jan 7, 2020
2 parents 8fd0b42 + 815f365 commit 87caa35
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Windows

on: [push, pull_request]
jobs:
build:
name: >-
windows-latest Ruby: ${{ matrix.ruby }}
runs-on: 'windows-latest'
strategy:
fail-fast: false
matrix:
ruby: [ '2.4.x', '2.5.x', '2.6.x', '9.9.x' ]
steps:
- name: repo checkout
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: load ruby, update gcc
uses: MSP-Greg/actions-ruby@master
with:
ruby-version: ${{ matrix.ruby }}
base: update
- name: update RubyGems, Bundler
run: gem update --system --no-document --conservative
- name: bundle install
run: bundle install --jobs=3 --retry=3
- name: test
run: |
ruby -v
bundle exec rake
env:
CI: true
12 changes: 12 additions & 0 deletions spec/parser/ruby/ruby_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -504,5 +504,17 @@ def bar; end if true
it "handles compile errors" do
expect { stmt(":~$ Do not clobber") }.to raise_error(Parser::ParserSyntaxError)
end

it "handles cls/mod comments without line spacing" do
ast = stmt <<-eof
module A
# comment 1
# comment 2
class B
end
end
eof
expect(ast.jump(:class).docstring).to eq "comment 1\ncomment 2"
end
end
end if HAVE_RIPPER

0 comments on commit 87caa35

Please sign in to comment.