Skip to content

Commit 87f3486

Browse files
committed
initial commit
1 parent c0aaab4 commit 87f3486

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2155
-0
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: github-actions
9+
directory: "/"
10+
schedule:
11+
interval: daily
12+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: ruby-3.3.6
19+
bundler-cache: true
20+
21+
- name: Lint code for consistent style
22+
run: bin/rubocop -f github
23+
24+
test:
25+
runs-on: ubuntu-latest
26+
27+
# services:
28+
# redis:
29+
# image: redis
30+
# ports:
31+
# - 6379:6379
32+
# options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
33+
steps:
34+
- name: Install packages
35+
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y build-essential git pkg-config google-chrome-stable
36+
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
40+
- name: Set up Ruby
41+
uses: ruby/setup-ruby@v1
42+
with:
43+
ruby-version: ruby-3.3.6
44+
bundler-cache: true
45+
46+
- name: Run tests
47+
env:
48+
RAILS_ENV: test
49+
# REDIS_URL: redis://localhost:6379/0
50+
run: bin/rails db:test:prepare test
51+
52+
- name: Keep screenshots from failed system tests
53+
uses: actions/upload-artifact@v4
54+
if: failure()
55+
with:
56+
name: screenshots
57+
path: ${{ github.workspace }}/tmp/screenshots
58+
if-no-files-found: ignore
59+

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.bundle/
2+
/doc/
3+
/log/*.log
4+
/pkg/
5+
/tmp/
6+
/test/dummy/db/*.sqlite3
7+
/test/dummy/db/*.sqlite3-*
8+
/test/dummy/log/*.log
9+
/test/dummy/storage/
10+
/test/dummy/tmp/

.rubocop.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Omakase Ruby styling for Rails
2+
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
3+
4+
# Overwrite or add rules to create your own house style
5+
#
6+
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
7+
# Layout/SpaceInsideArrayLiteralBrackets:
8+
# Enabled: false

Gemfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
source "https://rubygems.org"
2+
3+
# Specify your gem's dependencies in nova.gemspec.
4+
gemspec
5+
6+
gem "puma"
7+
8+
gem "sqlite3"
9+
10+
gem "propshaft"
11+
12+
# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
13+
gem "rubocop-rails-omakase", require: false
14+
15+
# Start debugger with binding.b [https://github.com/ruby/debug]
16+
# gem "debug", ">= 1.0.0"

0 commit comments

Comments
 (0)