From a90f2e5ea5576519918d969d9366cdaf4502d391 Mon Sep 17 00:00:00 2001 From: hmdne <54514036+hmdne@users.noreply.github.com> Date: Thu, 23 Dec 2021 15:41:15 +0100 Subject: [PATCH] Update Opal versions for GHA --- .github/workflows/build.yml | 4 ++-- spec/tilt/opal_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d610869..612043d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,8 @@ jobs: strategy: matrix: os: [ 'ubuntu-latest' ] - ruby: [ "3.0", "2.7", "2.6", "2.5" ] - opal: [ "1.0.3", "1.1.0" ] + ruby: [ "head", "3.0", "2.7", "2.6" ] + opal: [ "~>1.0.0a", "~>1.1.0a", "~>1.3.0a", "~>1.4.0a"] runs-on: ${{ matrix.os }} diff --git a/spec/tilt/opal_spec.rb b/spec/tilt/opal_spec.rb index cbcc498..8dacfde 100644 --- a/spec/tilt/opal_spec.rb +++ b/spec/tilt/opal_spec.rb @@ -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 @@ -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