Make default Rails version 7.X instead of 7.0.X (#85) #222
This file contains hidden or 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.2" | |
| - "8.0" | |
| - "main" | |
| ruby-version: | |
| - "3.4" | |
| 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@v6" | |
| - 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 -- |