Skip to content

Commit

Permalink
Convert to webpacker and TailwindCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
leesmith committed May 24, 2020
1 parent 78a05fa commit a98e967
Show file tree
Hide file tree
Showing 42 changed files with 8,485 additions and 452 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
@@ -0,0 +1 @@
defaults
58 changes: 41 additions & 17 deletions .github/workflows/ruby.yml
Expand Up @@ -15,20 +15,44 @@ jobs:
POSTGRES_HOST_AUTH_METHOD: trust

steps:
- uses: actions/checkout@v1
- uses: ruby/setup-ruby@v1
id: ruby
with:
ruby-version: 2.6.6
- name: Build and test with Rake
env:
PGHOST: 127.0.0.1
PGUSER: postgres
RAILS_ENV: test
run: |
sudo apt-get -yqq install libpq-dev
gem install bundler
bundle install --jobs 4 --retry 3
cp config/database.postgres.yml config/database.yml
bundle exec rake db:test:prepare
bundle exec rake spec
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Ruby version specified in `.ruby-version`
uses: eregon/use-ruby-action@master
- name: Install dependencies
run: |
sudo apt-get -y install libpq-dev
gem install bundler
- name: Setup cache key and directory for gems cache
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-use-ruby-${{ hashFiles('**/Gemfile.lock') }}
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Get Yarn cache directory path
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup cache key and directory for node_modules cache
uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Yarn install
run: yarn --frozen-lockfile
- name: Create database config
run: cp config/database.postgres.yml config/database.yml
- name: Prepare DB and run test suite
env:
PGHOST: 127.0.0.1
PGUSER: postgres
RAILS_ENV: test
run: |
bundle exec rake db:test:prepare
bundle exec rake spec
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -15,3 +15,11 @@
/tmp/*
!/log/.keep
!/tmp/.keep

/public/assets
/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
6 changes: 3 additions & 3 deletions Gemfile
Expand Up @@ -8,9 +8,11 @@ gem 'bcrypt'
gem 'bootsnap', require: false
gem 'hamlit'
gem 'pg'
gem 'puma'
gem 'rails'
gem 'rake'
gem 'sassc-rails'
gem 'uglifier', '>= 1.3.0'
gem 'webpacker'

group :development, :test do
gem 'awesome_print'
Expand All @@ -30,14 +32,12 @@ group :development do
gem 'brakeman', require: false
gem 'rails_best_practices'
gem 'spring'
gem 'thin'
end

group :test do
gem 'capybara'
gem 'email_spec'
gem 'launchy'
gem 'rake'
gem 'selenium-webdriver'
gem 'shoulda-matchers'
gem 'simplecov', require: false
Expand Down

0 comments on commit a98e967

Please sign in to comment.