Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
on:
- push
- pull_request
push:
branches:
- master
- "*-stable"
- "*/ci-check"
pull_request: {}

jobs:
build:
strategy:
matrix:
os: [ 'ubuntu-latest' ]
ruby: [ "3.0", "2.7", "2.6", "2.5" ]
opal: [ "1.0.3", "1.1.0" ]
ruby: [ "head", "3.1", "3.0", "2.7", "2.6" ]
opal: [ "~>1.0.0a", "~>1.1.0a", "~>1.3.0a", "~>1.4.0a"]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions spec/tilt/opal_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
template = described_class.new('./spec/fixtures/opal_file.rb', :build=>true)
output = template.render
expect(output).to include('"hi from opal!"')
expect(output).to include('self.$require("corelib/runtime");')
expect(output).to include('.$require("corelib/runtime");')
end

it "support :builder option" do
Expand All @@ -31,7 +31,7 @@
2.times do
output = template.render
expect(output.scan(/hi from opal!/).length).to eql(1)
expect(output).not_to include('self.$require("corelib/runtime");')
expect(output).not_to include('.$require("corelib/runtime");')
end
end
end