Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Libsass dependency with sass-embedded #240

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
100 changes: 100 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: build

on: [push, pull_request]

jobs:
lint:

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

- name: Lint
run: bundle exec rake rubocop

test:

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

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
ruby-version: ['2.6', '2.7', '3.0', 'ruby', 'jruby']
exclude:
- os: windows-latest
ruby-version: jruby

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

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Test
run: bundle exec rake test

test-vendor:

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

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
ruby-version: ['2.6', '2.7', '3.0', 'ruby', 'jruby']
submodule:
- vendor/github.com/sass/sassc-rails
- vendor/github.com/twbs/bootstrap
exclude:
- os: windows-latest
ruby-version: jruby

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

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Test
run: bundle exec rake git:submodule:test[${{matrix.submodule}}]

release:

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

needs: [lint, test, test-vendor]

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
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
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
release:

if: github.event.repository.fork == false

runs-on: ubuntu-latest

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

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

- name: Release
run: rake -f -r bundler/gem_tasks release
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
/spec/reports/
/tmp/
*.bundle
*.so
*.o
*.a
*.gem
mkmf.log
vendor/bundle
/ext/Makefile
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

23 changes: 23 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
inherit_from: .rubocop_todo.yml

require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake

AllCops:
Exclude:
- 'vendor/**/*'

TargetRubyVersion: 2.6

NewCops: enable

Metrics:
Enabled: false

Minitest/MultipleAssertions:
Enabled: false

Style/Documentation:
Enabled: false
Loading