Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,21 @@ on:
pull_request:

jobs:
css:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.4']
ruby: ['3.3', '3.4']
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake css

# Capybara integration test for the utility-nav server clock. Needs headless
# Chrome (preinstalled on ubuntu-latest) and Rails 8 (Ruby >= 3.2).
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- uses: actions/setup-node@v4
with:
ruby-version: '3.4'
bundler-cache: true
node-version: 22
cache: npm
cache-dependency-path: test/dummy/package-lock.json
- run: bundle exec rake test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
/src/
/test/dummy/tmp/
/test/dummy/log/
/test/dummy/app/assets/builds/
/test/dummy/node_modules/
/test/dummy/app/assets/builds/*
!/test/dummy/app/assets/builds/.keep
/tmp/
46 changes: 28 additions & 18 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in active_admin_theme.gemspec

# Run against an unreleased ActiveAdmin, such as a branch with the layout hooks:
# ACTIVEADMIN_PATH=../activeadmin bundle exec rake test
# ACTIVEADMIN_BRANCH=extensible-layout bundle exec rake test
if ENV["ACTIVEADMIN_PATH"]
gem "activeadmin", path: ENV["ACTIVEADMIN_PATH"]
elsif ENV["ACTIVEADMIN_BRANCH"]
gem "activeadmin", github: ENV.fetch("ACTIVEADMIN_REPO", "senid231/activeadmin"), branch: ENV["ACTIVEADMIN_BRANCH"]
end
gemspec

group :development, :test do
gem 'rake'
gem 'sassc'
# Run against an unreleased ActiveAdmin, such as a branch with the layout hooks:
# ACTIVEADMIN_PATH=../activeadmin bundle exec rake test
# ACTIVEADMIN_BRANCH=extensible-layout bundle exec rake test
if ENV["ACTIVEADMIN_PATH"]
gem "activeadmin", path: ENV["ACTIVEADMIN_PATH"]
elsif ENV["ACTIVEADMIN_BRANCH"]
gem "activeadmin", github: ENV.fetch("ACTIVEADMIN_REPO", "senid231/activeadmin"), branch: ENV["ACTIVEADMIN_BRANCH"]
end

# Dummy ActiveAdmin app (test/dummy) that hosts the Capybara integration test
# (`rake test`) and sources the neutral README screenshot. Sprockets +
# sassc-rails is the pipeline AA 3.x targets (it emits `//= require` directives
# and SCSS). Rails 8 needs Ruby >= 3.2, so keep these out of the 3.1 bundle —
# `rake css` still runs on 3.1 without them.
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.2')
group :development, :test do
gem 'rails', '~> 8.0'
gem 'sprockets-rails'
gem 'sassc-rails'
gem 'sqlite3'
gem 'puma'
gem 'capybara'
gem 'cuprite'
end
# Dummy ActiveAdmin 4 app (test/dummy): importmap + propshaft, Tailwind CSS
# built with the npm CLI. It hosts the Capybara tests and the screenshot
# scripts.
group :development, :test do
gem 'rake'
gem 'rails', '~> 8.0'
gem 'propshaft'
gem 'importmap-rails'
gem 'sqlite3'
gem 'puma'
gem 'capybara'
gem 'cuprite'
end
Loading
Loading