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
Prev Previous commit
Next Next commit
Ad GH actions
johnnyshields committed Oct 21, 2022
commit 70f2635af00f27b0059f077ae3e815a1cadf84a2
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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ See [CHANGELOG.md](CHANGELOG.md).

### Code Changes

1. Fork it ( https://github.com/sass/sassc-ruby/fork )
1. Fork it ([https://github.com/sass/sassc-ruby/fork](https://github.com/sass/sassc-ruby/fork))
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`) - try to include tests
4. Push to the branch (`git push origin my-new-feature`)