Skip to content

Commit

Permalink
Merge pull request #125 from louis-vs/update-spina
Browse files Browse the repository at this point in the history
Refactor to support latest version of Spina
  • Loading branch information
louis-vs authored Jan 26, 2022
2 parents e161f08 + e08b630 commit 26bbfe8
Show file tree
Hide file tree
Showing 98 changed files with 1,124 additions and 2,564 deletions.
51 changes: 49 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Run RuboCop
run: bin/rails rubocop
- name: Run ESLint
run: eslint --ext .js,.es6 "app/assets/javascripts/**"
run: eslint "app/assets/javascripts/**/*{.js,.es6}"

tests:
name: Rails tests
Expand Down Expand Up @@ -61,6 +61,52 @@ jobs:
ports:
- 6379:6379

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- name: Prepare test db
run: bin/rails db:setup
- name: Run tests
run: bin/rails test

system_tests:
name: System tests
runs-on: ubuntu-latest
env:
RACK_ENV: test
RAILS_ENV: test
RAILS_SERVE_STATIC_FILES: enabled
PGHOST: 127.0.0.1
PGUSER: postgres
PGPASSWORD: postgres
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -76,4 +122,5 @@ jobs:
- name: Prepare test db
run: bin/rails db:setup
- name: Run tests
run: bundle exec rake
run: bin/rails app:test:system

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ pkg/
test/dummy/log/*.log
test/dummy/storage/
test/dummy/tmp/

test/dummy/app/assets/config/spina/tailwind.config.js
test/dummy/app/assets/builds/spina/tailwind.css
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ AllCops:
- tmp/**/*
- vendor/**/*
- .git/**/*

Lint/MissingSuper:
Exclude:
- app/components/**/*
Loading

0 comments on commit 26bbfe8

Please sign in to comment.