Split scrolling for navbar and preview window #213
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
name: "Tests" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
rails-version: | |
- "7.1" | |
- "6.1" | |
- "main" | |
ruby-version: | |
- "3.2" | |
- "2.7" | |
env: | |
RAILS_ENV: test | |
RAILS_VERSION: ${{ matrix.rails-version }} | |
name: ${{ format('Tests rails@{0} ruby@{1}', matrix.rails-version, matrix.ruby-version) }} | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "ruby/setup-ruby@v1" | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
- name: Build Styles with tailwindcss-rails | |
run: bin/rails runner 'require "tailwindcss-rails"; `bin/tailwindcss`' | |
- name: Build Highlight Styles with rouge | |
run: bin/rails runner 'require "rouge"; `bin/highlights`' | |
- name: Run tests with Rouge | |
run: bin/rails test test/ | |
- name: Run tests without Rouge | |
run: ROUGE_ENABLED=false bin/rails test test/ | |
- name: Fail when generated changes are not checked-in | |
run: git update-index --refresh && git diff-index --quiet HEAD -- |