rails-quality-assurance 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5d3aff2609767e18b4fafd06836c4b80449430f803fdcb33341502d100e86af
4
- data.tar.gz: 66ac48b55b9019174df51024490940062d1f8d9a9f2ad437132dac6e2cb7baaa
3
+ metadata.gz: fb90801ffefa028ae7b9173e04f759fa64e59bf88db9d92131c263a8844ff144
4
+ data.tar.gz: 149747d49baeeaf03ddb88407d29cd90df3c9fb1032bea8168faa542d9862d04
5
5
  SHA512:
6
- metadata.gz: 662d3195065986d9459b1d6c32083ed0939b098dfbdc95a4e926c89255645aa389ef625b8654660001077bc39bd5af620a411bf06805232e4554ee4e4cfb7ef6
7
- data.tar.gz: 3137af9575ae65157f7c2886e80b6f497907586087ea9aa81ce3f27aaa7cd68fe3efc71bbecf7366a0b754cc88000babb9bfe4ae7d1f772c44b1f5314f6857da
6
+ metadata.gz: b2b7465cd190e164e9979b8a8e770c38ad1eb77fbf97a11dfeafb53d5311a301c1c8b2dfda141d2583e554883c5a6ae6919b58412b9d73b9e1dd028d53e62506
7
+ data.tar.gz: 116c20f50206b7552e99926897c41583036b163ce5b9768dea97a2f127e96adfaa2bee56eca389807fbed7efa1f6fb0a8f774e2fa63bf1e9e4ba0fe7bf8d3330
@@ -16,6 +16,9 @@ CI.run do
16
16
  step 'Frontend: Biome', 'bin/rails qa:lint:biome' if File.exist?('biome.json')
17
17
  step 'Frontend: Stylelint', 'bin/rails qa:lint:stylelint' if File.exist?('.stylelintrc.json')
18
18
 
19
+ # System specs render layouts that reference compiled assets.
20
+ step 'Assets: Tailwind', 'bin/rails tailwindcss:build' if File.exist?('app/assets/tailwind/application.css')
21
+
19
22
  step 'Tests: RSpec (parallel)', 'bin/rails spec:parallel'
20
23
 
21
24
  # Coverage gate: enforced by SimpleCov in spec/spec_helper.rb (100% line + branch)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsQualityAssurance
4
- VERSION = '1.3.1'
4
+ VERSION = '1.3.3'
5
5
  end
@@ -85,8 +85,11 @@ namespace :spec do
85
85
 
86
86
  options = "--isolate --single spec/system/ --isolate-n #{isolate_tasks}"
87
87
  options << " --test-options=\"#{test_options}\"" if test_options
88
- Rake::Task['parallel:create'].invoke(parallel_tasks)
89
- Rake::Task['parallel:load_schema'].invoke(parallel_tasks)
90
- Rake::Task['parallel:spec'].invoke(parallel_tasks, nil, nil, options)
88
+
89
+ # Each phase runs in its own rake process: parallel_tests shells out to `$0`
90
+ # to load a schema per worker, which only works when `$0` is a rake runner.
91
+ sh "bundle exec rake parallel:create[#{parallel_tasks}]"
92
+ sh "bundle exec rake parallel:load_schema[#{parallel_tasks}]"
93
+ sh "bundle exec parallel_rspec spec/ -n #{parallel_tasks} #{options}"
91
94
  end
92
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-quality-assurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Zaffari