Skip to content

Commit 33ad559

Browse files
Configure GitHub Actions. Run Standard.
1 parent 47ea2d4 commit 33ad559

31 files changed

+228
-195
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
ci:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
- name: Setup Ruby
9+
uses: actions/setup-ruby@v1
10+
with:
11+
ruby-version: '3.0.3'
12+
- run: npm install
13+
- name: Run build
14+
run: |
15+
sudo apt-get -yqq install libpq-dev
16+
gem install bundler
17+
bundle install --jobs 4 --retry 3
18+
bundle exec rails db:prepare
19+
- name: Run tests
20+
run: bundle exec rails test
21+
- name: Run linters
22+
run: bundle exec standardrb

.standard.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ignore:
2+
- 'db/schema.rb'
3+
- 'config/environments/production.rb'
4+
- 'config/puma.rb'

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
ruby 2.7.1
1+
ruby 3.0.3
22
nodejs 16.7.0

Gemfile

+21-20
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,57 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '2.7.1'
4+
ruby "3.0.3"
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7-
gem 'rails', '~> 6.1.4', '>= 6.1.4.1'
7+
gem "rails", "~> 6.1.4", ">= 6.1.4.1"
88
# Use sqlite3 as the database for Active Record
9-
gem 'sqlite3', '~> 1.4'
9+
gem "sqlite3", "~> 1.4"
1010
# Use Puma as the app server
11-
gem 'puma', '~> 5.0'
11+
gem "puma", "~> 5.0"
1212
# Use SCSS for stylesheets
13-
gem 'sass-rails', '>= 6'
13+
gem "sass-rails", ">= 6"
1414
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15-
gem 'webpacker', '~> 5.0'
15+
gem "webpacker", "~> 5.0"
1616
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
17-
gem 'turbolinks', '~> 5'
17+
gem "turbolinks", "~> 5"
1818
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
19-
gem 'jbuilder', '~> 2.7'
19+
gem "jbuilder", "~> 2.7"
2020
# Use Redis adapter to run Action Cable in production
2121
# gem 'redis', '~> 4.0'
2222
# Use Active Model has_secure_password
23-
gem 'bcrypt', '~> 3.1.7'
23+
gem "bcrypt", "~> 3.1.7"
2424

2525
# Use Active Storage variant
2626
# gem 'image_processing', '~> 1.2'
2727

2828
# Reduces boot times through caching; required in config/boot.rb
29-
gem 'bootsnap', '>= 1.4.4', require: false
29+
gem "bootsnap", ">= 1.4.4", require: false
3030

3131
group :development, :test do
3232
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
33-
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
33+
gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
34+
gem "standard", "~> 1.3"
3435
end
3536

3637
group :development do
3738
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
38-
gem 'web-console', '>= 4.1.0'
39+
gem "web-console", ">= 4.1.0"
3940
# Display performance information such as SQL time and flame graphs for each request in your browser.
4041
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
41-
gem 'rack-mini-profiler', '~> 2.0'
42-
gem 'listen', '~> 3.3'
42+
gem "rack-mini-profiler", "~> 2.0"
43+
gem "listen", "~> 3.3"
4344
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
44-
gem 'spring'
45+
gem "spring"
4546
end
4647

4748
group :test do
4849
# Adds support for Capybara system testing and selenium driver
49-
gem 'capybara', '>= 3.26'
50-
gem 'selenium-webdriver'
50+
gem "capybara", ">= 3.26"
51+
gem "selenium-webdriver"
5152
# Easy installation and use of web drivers to run system tests with browsers
52-
gem 'webdrivers'
53+
gem "webdrivers"
5354
end
5455

5556
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
56-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
57+
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+40-18
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ GEM
6262
zeitwerk (~> 2.3)
6363
addressable (2.8.0)
6464
public_suffix (>= 2.0.2, < 5.0)
65+
ast (2.4.2)
6566
bcrypt (3.1.16)
6667
bindex (0.8.1)
67-
bootsnap (1.9.1)
68+
bootsnap (1.9.3)
6869
msgpack (~> 1.0)
6970
builder (3.2.4)
7071
byebug (11.1.3)
@@ -82,16 +83,16 @@ GEM
8283
crass (1.0.6)
8384
erubi (1.10.0)
8485
ffi (1.15.4)
85-
globalid (0.5.2)
86+
globalid (1.0.0)
8687
activesupport (>= 5.0)
8788
i18n (1.8.11)
8889
concurrent-ruby (~> 1.0)
89-
jbuilder (2.11.2)
90+
jbuilder (2.11.3)
9091
activesupport (>= 5.0.0)
9192
listen (3.7.0)
9293
rb-fsevent (~> 0.10, >= 0.10.3)
9394
rb-inotify (~> 0.9, >= 0.9.10)
94-
loofah (2.12.0)
95+
loofah (2.13.0)
9596
crass (~> 1.0.2)
9697
nokogiri (>= 1.5.9)
9798
mail (2.7.1)
@@ -100,13 +101,14 @@ GEM
100101
matrix (0.4.2)
101102
method_source (1.0.0)
102103
mini_mime (1.1.2)
103-
mini_portile2 (2.6.1)
104104
minitest (5.14.4)
105105
msgpack (1.4.2)
106106
nio4r (2.5.8)
107-
nokogiri (1.12.5)
108-
mini_portile2 (~> 2.6.1)
107+
nokogiri (1.12.5-arm64-darwin)
109108
racc (~> 1.4)
109+
parallel (1.21.0)
110+
parser (3.0.3.2)
111+
ast (~> 2.4.1)
110112
public_suffix (4.0.6)
111113
puma (5.5.2)
112114
nio4r (~> 2.0)
@@ -144,12 +146,28 @@ GEM
144146
method_source
145147
rake (>= 0.13)
146148
thor (~> 1.0)
149+
rainbow (3.0.0)
147150
rake (13.0.6)
148151
rb-fsevent (0.11.0)
149152
rb-inotify (0.10.1)
150153
ffi (~> 1.0)
151-
regexp_parser (2.1.1)
154+
regexp_parser (2.2.0)
152155
rexml (3.2.5)
156+
rubocop (1.23.0)
157+
parallel (~> 1.10)
158+
parser (>= 3.0.0.0)
159+
rainbow (>= 2.2.2, < 4.0)
160+
regexp_parser (>= 1.8, < 3.0)
161+
rexml
162+
rubocop-ast (>= 1.12.0, < 2.0)
163+
ruby-progressbar (~> 1.7)
164+
unicode-display_width (>= 1.4.0, < 3.0)
165+
rubocop-ast (1.14.0)
166+
parser (>= 3.0.1.1)
167+
rubocop-performance (1.12.0)
168+
rubocop (>= 1.7.0, < 2.0)
169+
rubocop-ast (>= 0.4.0)
170+
ruby-progressbar (1.11.0)
153171
rubyzip (2.3.2)
154172
sass-rails (6.0.0)
155173
sassc-rails (~> 2.1, >= 2.1.1)
@@ -161,28 +179,32 @@ GEM
161179
sprockets (> 3.0)
162180
sprockets-rails
163181
tilt
164-
selenium-webdriver (4.0.3)
182+
selenium-webdriver (4.1.0)
165183
childprocess (>= 0.5, < 5.0)
166184
rexml (~> 3.2, >= 3.2.5)
167185
rubyzip (>= 1.2.2)
168186
semantic_range (3.0.0)
169-
spring (3.0.0)
187+
spring (4.0.0)
170188
sprockets (4.0.2)
171189
concurrent-ruby (~> 1.0)
172190
rack (> 1, < 3)
173-
sprockets-rails (3.2.2)
174-
actionpack (>= 4.0)
175-
activesupport (>= 4.0)
191+
sprockets-rails (3.4.2)
192+
actionpack (>= 5.2)
193+
activesupport (>= 5.2)
176194
sprockets (>= 3.0.0)
177195
sqlite3 (1.4.2)
196+
standard (1.5.0)
197+
rubocop (= 1.23.0)
198+
rubocop-performance (= 1.12.0)
178199
thor (1.1.0)
179200
tilt (2.0.10)
180201
turbolinks (5.2.1)
181202
turbolinks-source (~> 5.2)
182203
turbolinks-source (5.2.0)
183204
tzinfo (2.0.4)
184205
concurrent-ruby (~> 1.0)
185-
web-console (4.1.0)
206+
unicode-display_width (2.1.0)
207+
web-console (4.2.0)
186208
actionview (>= 6.0.0)
187209
activemodel (>= 6.0.0)
188210
bindex (>= 0.4.0)
@@ -204,8 +226,7 @@ GEM
204226
zeitwerk (2.5.1)
205227

206228
PLATFORMS
207-
ruby
208-
x86_64-darwin-19
229+
arm64-darwin-21
209230

210231
DEPENDENCIES
211232
bcrypt (~> 3.1.7)
@@ -221,14 +242,15 @@ DEPENDENCIES
221242
selenium-webdriver
222243
spring
223244
sqlite3 (~> 1.4)
245+
standard (~> 1.3)
224246
turbolinks (~> 5)
225247
tzinfo-data
226248
web-console (>= 4.1.0)
227249
webdrivers
228250
webpacker (~> 5.0)
229251

230252
RUBY VERSION
231-
ruby 2.7.1p83
253+
ruby 3.0.3p157
232254

233255
BUNDLED WITH
234-
2.2.26
256+
2.2.32

0 commit comments

Comments
 (0)