Skip to content

Commit

Permalink
Merge pull request #52 from bullet-train-co/bullet-train-update/1.12.3
Browse files Browse the repository at this point in the history
Bullet Train Update: 1.12.3
  • Loading branch information
jagthedrummer authored Dec 20, 2024
2 parents 3527cde + 2bb4f30 commit e0f16ad
Show file tree
Hide file tree
Showing 38 changed files with 1,177 additions and 610 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/_run_super_scaffolding_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,38 @@ on:
default: false

jobs:
# NOTE: This is here just to make the workflow visualization layout better.
# Without it the layout is really bad and confusing.
calculate_matrix:
name: 🤷 Fake Matrix
name: 🏗️ Generate Test List
runs-on: ubuntu-latest
outputs:
tests: ${{ steps.generate-test-list.outputs.result }}
steps:
- name: Do Nothing
run: echo "This is a useless step that just helps things look nicer..."
shell: bash
- name: Checkout Repo
uses: "actions/checkout@v4"

- uses: actions/github-script@v7
id: generate-test-list
name: Generate Test List
with:
script: |
const globber = await glob.create('test/system/super_scaffolding/**/setup.rb')
const tests = []
for await (const file of globber.globGenerator()) {
console.log(file)
var fileParts = file.split("/")
var test_dir_name = fileParts[fileParts.length - 2];
console.log("test_dir_name =", test_dir_name)
tests.push(test_dir_name)
}
return tests
test:
name: "🏗️"
runs-on: ubuntu-latest
needs: calculate_matrix
strategy:
fail-fast: false
matrix:
# For super scaffolding tests we need to have exactly 5 runners.
ci_runners: ["TestSite, Project", "Project::Step, Insight", "Personality::Disposition, Personality::Observation", "TestFile, PartialTest", Webhook]
test: ${{ fromJson(needs.calculate_matrix.outputs.tests) }}
services:
postgres:
image: postgres:11-alpine
Expand Down Expand Up @@ -125,28 +139,17 @@ jobs:
- run: yarn build:css
working-directory: tmp/starter

# TODO: This might be a bad idea. Maybe we should just have spring in the Gemfile all the time.
- name: Allow adding of spring
run: bundle config unset deployment
working-directory: tmp/starter

- name: Add spring
run: bundle add spring
working-directory: tmp/starter

- name: 'Setup Super Scaffolding System Test'
run: bundle exec test/bin/setup-super-scaffolding-system-test
run: bundle exec test/system/super_scaffolding/${{ matrix.test }}/setup.rb --allow-dirty-workspace
working-directory: tmp/starter
env:
CIRCLE_NODE_INDEX: ${{ strategy.job-index }}

- name: 'Run Super Scaffolding Test'
run: bin/rails test test/system/super_scaffolding/
run: bin/rails test test/system/super_scaffolding/${{ matrix.test }}/ test/system/super_scaffolding/open_api_test.rb
working-directory: tmp/starter

- name: 'Run Super Scaffolding Webhook Test'
run: bin/rails test test/controllers/webhooks/incoming/some_provider_webhooks_controller_test.rb
if: ${{ strategy.job-index == 5 }}
if: ${{ matrix.test == 'webhook' }}
working-directory: tmp/starter

- name: Upload Test Summary Logs
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ end

# We use a constant here so that we can ensure that all of the bullet_train-*
# packages are on the same version.
BULLET_TRAIN_VERSION = "1.12.2"
BULLET_TRAIN_VERSION = "1.12.3"

# Core packages.
gem "bullet_train", BULLET_TRAIN_VERSION
Expand Down
76 changes: 38 additions & 38 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ GEM
bootsnap (1.17.1)
msgpack (~> 1.2)
builder (3.2.4)
bullet_train (1.12.2)
bullet_train (1.12.3)
awesome_print
bullet_train-fields
bullet_train-has_uuid
Expand Down Expand Up @@ -155,7 +155,7 @@ GEM
unicode-emoji
valid_email
xxhash
bullet_train-api (1.12.2)
bullet_train-api (1.12.3)
bullet_train
bullet_train-super_scaffolding
colorizer
Expand All @@ -166,59 +166,59 @@ GEM
pagy_cursor
rack-cors
rails (>= 6.0.0)
bullet_train-fields (1.12.2)
bullet_train-fields (1.12.3)
chronic
cloudinary
phonelib
rails (>= 6.0.0)
bullet_train-has_uuid (1.12.2)
bullet_train-has_uuid (1.12.3)
rails (>= 6.0.0)
bullet_train-incoming_webhooks (1.12.2)
bullet_train-incoming_webhooks (1.12.3)
bullet_train
bullet_train-api
bullet_train-super_scaffolding
rails (>= 6.0.0)
bullet_train-integrations (1.12.2)
bullet_train-integrations (1.12.3)
rails (>= 6.0.0)
bullet_train-integrations-stripe (1.12.2)
bullet_train-integrations-stripe (1.12.3)
omniauth
omniauth-rails_csrf_protection
omniauth-stripe-connect
rails (>= 6.0.0)
stripe
bullet_train-obfuscates_id (1.12.2)
bullet_train-obfuscates_id (1.12.3)
hashids
rails (>= 6.0.0)
bullet_train-outgoing_webhooks (1.12.2)
bullet_train-outgoing_webhooks (1.12.3)
public_suffix
rails (>= 6.0.0)
bullet_train-roles (1.12.2)
bullet_train-roles (1.12.3)
active_hash
activesupport
cancancan
bullet_train-scope_questions (1.12.2)
bullet_train-scope_questions (1.12.3)
rails (>= 6.0.0)
bullet_train-scope_validator (1.12.2)
bullet_train-scope_validator (1.12.3)
rails
bullet_train-sortable (1.12.2)
bullet_train-sortable (1.12.3)
rails (>= 6.0.0)
bullet_train-super_load_and_authorize_resource (1.12.2)
bullet_train-super_load_and_authorize_resource (1.12.3)
cancancan
rails (>= 6.0.0)
bullet_train-super_scaffolding (1.12.2)
bullet_train-super_scaffolding (1.12.3)
colorizer
indefinite_article
masamune-ast (~> 2.0.2)
rails (>= 6.0.0)
bullet_train-themes (1.12.2)
bullet_train-themes (1.12.3)
bullet_train-fields
nice_partials (~> 0.9)
rails (>= 6.0.0)
bullet_train-themes-light (1.12.2)
bullet_train-themes-light (1.12.3)
bullet_train-themes-tailwind_css
masamune-ast (~> 2.0.2)
rails (>= 6.0.0)
bullet_train-themes-tailwind_css (1.12.2)
bullet_train-themes-tailwind_css (1.12.3)
bullet_train-themes
rails (>= 6.0.0)
cable_ready (5.0.6)
Expand Down Expand Up @@ -648,7 +648,7 @@ GEM
stimulus-rails (1.3.0)
railties (>= 6.0.0)
stringio (3.0.8)
stripe (13.2.0)
stripe (13.3.0)
strscan (3.1.0)
terser (1.1.20)
execjs (>= 0.3.0, < 3)
Expand Down Expand Up @@ -690,7 +690,7 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
xxhash (0.5.0)
xxhash (0.6.0)
zeitwerk (2.6.12)

PLATFORMS
Expand All @@ -704,24 +704,24 @@ DEPENDENCIES
avo (>= 3.1.7)
aws-sdk-s3
bootsnap
bullet_train (= 1.12.2)
bullet_train-api (= 1.12.2)
bullet_train-fields (= 1.12.2)
bullet_train-has_uuid (= 1.12.2)
bullet_train-incoming_webhooks (= 1.12.2)
bullet_train-integrations (= 1.12.2)
bullet_train-integrations-stripe (= 1.12.2)
bullet_train-obfuscates_id (= 1.12.2)
bullet_train-outgoing_webhooks (= 1.12.2)
bullet_train-roles (= 1.12.2)
bullet_train-scope_questions (= 1.12.2)
bullet_train-scope_validator (= 1.12.2)
bullet_train-sortable (= 1.12.2)
bullet_train-super_load_and_authorize_resource (= 1.12.2)
bullet_train-super_scaffolding (= 1.12.2)
bullet_train-themes (= 1.12.2)
bullet_train-themes-light (= 1.12.2)
bullet_train-themes-tailwind_css (= 1.12.2)
bullet_train (= 1.12.3)
bullet_train-api (= 1.12.3)
bullet_train-fields (= 1.12.3)
bullet_train-has_uuid (= 1.12.3)
bullet_train-incoming_webhooks (= 1.12.3)
bullet_train-integrations (= 1.12.3)
bullet_train-integrations-stripe (= 1.12.3)
bullet_train-obfuscates_id (= 1.12.3)
bullet_train-outgoing_webhooks (= 1.12.3)
bullet_train-roles (= 1.12.3)
bullet_train-scope_questions (= 1.12.3)
bullet_train-scope_validator (= 1.12.3)
bullet_train-sortable (= 1.12.3)
bullet_train-super_load_and_authorize_resource (= 1.12.3)
bullet_train-super_scaffolding (= 1.12.3)
bullet_train-themes (= 1.12.3)
bullet_train-themes-light (= 1.12.3)
bullet_train-themes-tailwind_css (= 1.12.3)
capybara (~> 3.39)
capybara-email
capybara-lockstep
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "app",
"private": true,
"dependencies": {
"@bullet-train/bullet-train": "1.12.2",
"@bullet-train/bullet-train-sortable": "1.12.2",
"@bullet-train/fields": "1.12.2",
"@bullet-train/bullet-train": "1.12.3",
"@bullet-train/bullet-train-sortable": "1.12.3",
"@bullet-train/fields": "1.12.3",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@fullhuman/postcss-purgecss": "7.0.2",
"@hotwired/stimulus": "^3.2.2",
"@hotwired/turbo-rails": "^8.0.12",
"@icon/themify-icons": "^1.0.1-alpha.3",
"@rails/actioncable": "^7.1.3",
Expand All @@ -30,7 +31,8 @@
"postcss-nested": "^7.0.2",
"stimulus-reveal": "^1.4.2",
"stimulus-scroll-reveal": "^3.2.0",
"tailwindcss": "^3.4.16",
"tailwindcss": "^3.4.17",
"trix": "^2.1.11",
"yalc": "^1.0.0-pre.53"
},
"scripts": {
Expand Down
124 changes: 0 additions & 124 deletions test/bin/setup-super-scaffolding-system-test

This file was deleted.

Loading

0 comments on commit e0f16ad

Please sign in to comment.