-
Notifications
You must be signed in to change notification settings - Fork 3
/
peak_flow.yml
79 lines (76 loc) · 2.91 KB
/
peak_flow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
artifact_dirs:
- ruby-gem/spec/dummy/tmp/capybara
- ruby-gem/spec/dummy/tmp/screenshots
before_script:
- cd ruby-gem && bundle install --jobs 4 --without production staging && bundle exec appraisal install && bundle exec appraisal bundle
- cd npm-api-maker && yarn install --network-timeout 120000
- cd npm-api-maker && yarn link
- cd ruby-gem/spec/dummy && yarn install --network-timeout 120000
- cd ruby-gem/spec/dummy && yarn link @kaspernj/api-maker
- cd ruby-gem/spec/dummy && yarn
- cd ruby-gem/spec/dummy && bundle exec rails db:environment:set RAILS_ENV=test
- cd ruby-gem/spec/dummy && bundle exec rails db:schema:load
rvm: true
builds:
build_1:
environment:
RUBY_VERSION: 3.3.5
name: RSpec Rails 6 Ruby 3.3.5
script:
- cd ruby-gem && bundle exec appraisal "rails 6" rspec --format documentation spec/api_maker spec/services
build_2:
environment:
RUBY_VERSION: 3.3.5
name: RSpec Rails 7 Ruby 3.3.5
script:
- cd ruby-gem && bundle exec appraisal "rails 7" rspec --format documentation spec/api_maker spec/services
build_3:
environment:
RUBY_VERSION: 3.3.5
name: Chrome Rails 6 Ruby 3.3.5
script:
- cd ruby-gem/spec/dummy && RAILS_ENV=development bundle exec rails db:schema:load && RAILS_ENV=development bin/shakapacker
- cd ruby-gem && xvfb-run bundle exec appraisal "rails 6" rspec --format documentation spec/system
build_4:
environment:
RUBY_VERSION: 3.3.5
name: Chrome Rails 7 Ruby 3.3.5
script:
- cd ruby-gem/spec/dummy && RAILS_ENV=development bundle exec rails db:schema:load && RAILS_ENV=development bin/shakapacker
- cd ruby-gem && xvfb-run bundle exec appraisal "rails 7" rspec --format documentation spec/system
build_5:
name: Firefox Rails 6 Ruby 3.3.5
environment:
RUBY_VERSION: 3.3.5
SELENIUM_DRIVER: firefox
script:
- cd ruby-gem/spec/dummy && RAILS_ENV=development bundle exec rails db:schema:load && RAILS_ENV=development bin/shakapacker
- cd ruby-gem && xvfb-run bundle exec appraisal "rails 6" rspec --format documentation spec/system
build_6:
name: Firefox Rails 7 Ruby 3.3.5
environment:
RUBY_VERSION: 3.3.5
SELENIUM_DRIVER: firefox
script:
- cd ruby-gem/spec/dummy && RAILS_ENV=development bundle exec rails db:schema:load && RAILS_ENV=development bin/shakapacker
- cd ruby-gem && xvfb-run bundle exec appraisal "rails 7" rspec --format documentation spec/system
build_7:
name: Jest
script:
- cd npm-api-maker && yarn test
build_8:
name: Rubocop
script:
- cd ruby-gem && bundle exec rubocop
build_9:
name: Rails Best Practices
script:
- cd ruby-gem && bundle exec rails_best_practices
build_10:
name: ESLint
script:
- cd npm-api-maker && yarn eslint .
build_11:
name: ESLint find rules
script:
- cd npm-api-maker && yarn eslint-find-rules -u .eslintrc.cjs