Skip to content

Commit

Permalink
new testing paradigm (hot-glue-for-rails#7)
Browse files Browse the repository at this point in the history
* new testing paradigm

* updating readme

* adding importmap + turbo

* resetting the dummy

* Gems

* importmap

* turbo install

* rspec

* migrations from last dummy

* basic POC on specs

* rails new

* migrations

* importmap and turbo

* models

* removing old spec/dummy

* hot glue installer (rails generate hot_glue:install --layout=bootstrap)

* adding gems

* rspec install

* working with Turbo

* factory for abcs

* specs pass (4) on basic POC

* fixes double generation problem

* updating travis file

* Updating circle

* adding github action

* bundle lock --add-platform x86_64-linux

* github actions

* does bundle install work here

* removing bundle install

* CI fixes

* disabling bootsnap

* adding .ruby-version to dummy app

* CI fixes"
g

* Adding devise

* CI

* github CI

* adding || exit

* Trying circleci with ruby 3.1.2

* trying mirror gemfiles

* trying mirror schema

* can I point the config/database.yml to the dummy

* settting config/database.yml to use dummy/ database

* db schema

* removing unused script/setup script/update files

* adding 'sudo apt-get update' and sudo apt-get install rsync to circleci

* moving - run: sudo apt-get update && sudo apt-get install -y ruby-rspec to within steps for circle ci

* Adds setup to script/test

* tweeks to script/test

* removing script/setup

* trying bundle install before rake

* adding gem 'rake'

* adding gem 'rake' to dummy app

* gem "rspec-rails" in outside app

* Adding gems to outside Gemfile

* adding capybara

* Adding gem 'selenium-webdriver'

* adding webdrivers

* Adding chrome binary to circleci build:

* test spec failure

* removing circleci

* confirmed failing result on CI

* fixes error in clean_generated_code
  • Loading branch information
jasonfb authored Sep 11, 2022
1 parent 12b348a commit 1b982ec
Show file tree
Hide file tree
Showing 200 changed files with 1,413 additions and 5,251 deletions.
71 changes: 0 additions & 71 deletions .circleci/config.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Test
on: [ pull_request, workflow_dispatch ]

jobs:
build:
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
# Not needed with a .ruby-version file
ruby-version: 3.1
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- run: script/test
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.2
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ branches:
- main


script: "rake spec"
script: "script/test"

rvm:
- 2.7.2
- 3.1.2
24 changes: 17 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,24 @@ gemspec
# not required for your app
gem 'sqlite3'
gem 'byebug'
gem 'rails'
gem 'devise', require: true
# gem 'progress_formatter'

# for testing
gem "rails-controller-testing", group: [:test]
gem "database_cleaner", group: [:test]
gem "rspec-rails", group: [:test]
gem "rspec_junit_formatter", group: [:test]
gem "factory_bot", group: [:test]
gem 'simplecov-rcov'
gem 'rake'
gem "rspec-rails"
gem "factory_bot_rails"
gem "ffaker"
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"

gem "sprockets-rails"
gem "importmap-rails"
gem "stimulus-rails"
gem "turbo-rails"


gem "puma", "~> 5.0"

gem "devise"
Loading

0 comments on commit 1b982ec

Please sign in to comment.