Skip to content

Commit 2058e55

Browse files
committed
Update Opal versions for GHA
1 parent ad505ec commit 2058e55

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
on:
2-
- push
3-
- pull_request
2+
push:
3+
branches:
4+
- master
5+
- "*-stable"
6+
- "*/ci-check"
7+
pull_request: {}
48

59
jobs:
610
build:
711
strategy:
812
matrix:
913
os: [ 'ubuntu-latest' ]
10-
ruby: [ "3.0", "2.7", "2.6", "2.5" ]
11-
opal: [ "1.0.3", "1.1.0" ]
14+
ruby: [ "head", "3.1", "3.0", "2.7", "2.6" ]
15+
opal: [ "~>1.0.0a", "~>1.1.0a", "~>1.3.0a", "~>1.4.0a"]
1216

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

spec/tilt/opal_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
template = described_class.new('./spec/fixtures/opal_file.rb', :build=>true)
2222
output = template.render
2323
expect(output).to include('"hi from opal!"')
24-
expect(output).to include('self.$require("corelib/runtime");')
24+
expect(output).to include('.$require("corelib/runtime");')
2525
end
2626

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

0 commit comments

Comments
 (0)