Allow Sass engines other than sassc-rails (#92) #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [ opened, synchronize ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- ruby_version: '3.3' | |
gemfile: rails_7_1 | |
upload_coverage: true | |
- ruby_version: '3.2' | |
gemfile: rails_7_1 | |
# - ruby_version: '3.1' | |
# gemfile: rails_7_1 | |
- ruby_version: '3.3' | |
gemfile: rails_7_0 | |
- ruby_version: '3.3' | |
gemfile: rails_6_1 | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
BUNDLE_GEMFILE: ${{ github.workspace }}/spec/gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- name: "Determine whether to upload coverage" | |
if: ${{ env.CC_TEST_REPORTER_ID && matrix.upload_coverage }} | |
run: echo COVERAGE=1 >> $GITHUB_ENV | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby ${{ matrix.ruby_version }} and ${{ matrix.gemfile }}.gemfile | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
bundler: ${{ matrix.bundler || 'Gemfile.lock' }} | |
bundler-cache: true | |
cache-version: 1000 | |
- name: Run tests | |
if: ${{ !env.COVERAGE }} | |
run: bundle exec rspec --format d | |
- name: Run tests and upload coverage | |
uses: paambaati/codeclimate-action@v3.0.0 | |
if: ${{ env.COVERAGE }} | |
with: | |
coverageCommand: bundle exec rspec --format d | |
i18n-tasks: | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_GEMFILE: ${{ github.workspace }}/spec/gemfiles/i18n-tasks.gemfile | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby and i18n-tasks.gemfile | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
bundler-cache: true | |
- name: Run i18n-tasks | |
run: bundle exec i18n-tasks health |