зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-08-28 15:36:17 +03:00
- Switch to ActiveAdmin 4 beta with Tailwind CSS - Replace Sprockets with Propshaft for Rails 8 - Migrate from jQuery to vanilla JavaScript - Implement proper module initialization without setTimeout hacks - Add esbuild for JavaScript bundling with clean import aliases - Configure Tailwind CSS build process with ActiveAdmin plugin - Update engine configuration for both Propshaft and Sprockets - Add comprehensive documentation for AA4 gem updates - Maintain backward compatibility with legacy AA versions 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
65 строки
1.3 KiB
YAML
65 строки
1.3 KiB
YAML
---
|
|
name: Specs Rails 8.0
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
ruby: ['3.2', '3.3']
|
|
|
|
env:
|
|
RAILS_VERSION: 8.0
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: false
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
gem install bundler
|
|
bundle install --jobs 4 --retry 3
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install NPM dependencies
|
|
run: |
|
|
cd spec/dummy
|
|
npm install
|
|
|
|
- name: Build assets
|
|
run: |
|
|
cd spec/dummy
|
|
npm run build
|
|
|
|
- name: Database setup
|
|
run: |
|
|
cd spec/dummy
|
|
bundle exec rails db:create db:migrate db:test:prepare
|
|
|
|
- name: Run tests
|
|
run: bundle exec rspec --profile
|
|
|
|
- name: On failure, archive screenshots as artifacts
|
|
uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: test-failed-screenshots-rails8-${{ matrix.ruby }}
|
|
path: spec/dummy/tmp/capybara
|