Skip to content

Fix Bootstrap vendor test #69

Fix Bootstrap vendor test

Fix Bootstrap vendor test #69

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true
bundler: 2
- name: Rubocop
run: bundle exec rubocop
test:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ruby:
- '3.1'
- '3.2'
- '3.3'
- ruby
- jruby
- truffleruby
gemfile:
- gemfiles/rails_6_1.gemfile
- gemfiles/rails_7_0.gemfile
- gemfiles/rails_7_1.gemfile
exclude:
- os: windows-latest
ruby: jruby
- os: windows-latest
ruby: truffleruby
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_GEMFILE: "${{matrix.gemfile}}"
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
bundler: 2
- name: Test
run: bundle exec rake test
env:
BUNDLE_GEMFILE: "${{matrix.gemfile}}"
test-vendor:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ruby:
- '3.3'
gemfile:
- test/gemfiles/rails_7_0_dartsass.gemfile
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
with:
repository: twbs/bootstrap-rubygem
path: vendor/bootstrap
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
bundler: 2
- name: Test
run: |
gem build dartsass-sprockets.gemspec
gem install dartsass-sprockets-*.gem
cd vendor/bootstrap
bundle config local.dartsass-sprockets ${{github.workspace}}
BUNDLE_GEMFILE=${{matrix.gemfile}} bundle install --jobs 4 --retry 3
BUNDLE_GEMFILE=${{matrix.gemfile}} bundle exec rake test