Skip to content

Commit

Permalink
Update Opal versions for GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdne committed Dec 27, 2021
1 parent ad505ec commit 2058e55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
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

0 comments on commit 2058e55

Please sign in to comment.