Skip to content

Commit

Permalink
Test jdk 23-ea
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed May 14, 2024
1 parent d8f72a5 commit 261c80d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 75 deletions.
71 changes: 5 additions & 66 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
- macos-latest
- ubuntu-latest
- windows-latest
java-version:
- 17
- 21
- 23-ea
ruby-version:
- jruby

Expand All @@ -49,7 +53,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
java-version: ${{ matrix.java-version }}

- name: Setup ruby
uses: ruby/setup-ruby@v1
Expand All @@ -65,68 +69,3 @@ jobs:

- name: Install
run: rake -f -r bundler/gem_tasks install

spec-musl:

name: spec (alpine-latest, ${{ matrix.ruby-version }})

runs-on: ubuntu-latest

container:
image: docker.io/library/ruby:${{ matrix.ruby-version }}-alpine

env:
PROTOC_BIN: /usr/bin/protoc

strategy:
fail-fast: false
matrix:
ruby-version:
- '3.1'
- '3.2'
- '3.3'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: apk add alpine-sdk protoc

- name: Bundle
run: bundle install

- name: Compile
run: bundle exec rake compile

- name: Install
run: rake -f -r bundler/gem_tasks install

- name: Spec
run: bundle exec rake spec

release:

if: github.event.repository.fork == false && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)

needs: [lint, spec, spec-musl]

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby

- name: Release
run: |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git config user.name github-actions[bot]
rake -f -r bundler/gem_tasks release gem_push=no
11 changes: 2 additions & 9 deletions spec/sass_compile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,8 @@
# @see https://github.com/sass/sass-spec/blob/main/js-api-spec/compile.test.ts
RSpec.describe Sass do
it 'works for very large output' do
10000.times do |i|
expect {
described_class.compile_string('a{b:c}' * i).css
}.not_to raise_error
puts i
end

expect(described_class.compile_string('$a: b; c {d: $a}').css)
.to eq("c {\n d: b;\n}")
Sass.compile_string('a{b:c}' * 4368).css # works, stdout reply size is 65530 bytes
Sass.compile_string('a{b:c}' * 4369).css # fails, stdout reply size is 65545 bytes.
end

describe '.compile_string' do
Expand Down

0 comments on commit 261c80d

Please sign in to comment.