-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpeak_flow.yml
More file actions
80 lines (78 loc) · 3.33 KB
/
peak_flow.yml
File metadata and controls
80 lines (78 loc) · 3.33 KB
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
80
artifact_dirs:
- /home/build/project/ruby-gem/spec/dummy/tmp/capybara
- /home/build/project/ruby-gem/spec/dummy/tmp/screenshots
rvm: true
environment:
RUBY_VERSION: 3.3.5
builds:
setup:
name: Setup build container
script:
- cd ruby-gem && bundle install --jobs 4 --without production staging && bundle exec appraisal install && bundle exec appraisal bundle
- cd npm-api-maker && npm ci
- cd npm-api-maker && node -e "console.log('set-state-compare', require('./node_modules/set-state-compare/package.json').version)"
- cd npm-api-maker && ls -la node_modules/set-state-compare && ls -la node_modules/set-state-compare/build
- cd npm-api-maker && yarn link
- cd npm-api-maker && npm run build
- 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
- cd ruby-gem/spec/dummy && bundle exec rails runner "ApiMaker::GenerateModelRecipes.execute!"
- cd ruby-gem/spec/dummy && RAILS_ENV=development bin/shakapacker
builds:
build_2:
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 spec/api_helpers
build_3:
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 spec/api_helpers
rails_6_chrome:
name: Chrome Rails 6 Ruby 3.3.5
script:
- cd ruby-gem && xvfb-run bundle exec appraisal "rails 6" rspec --format documentation spec/system
rails_6_firefox:
name: Firefox Rails 6 Ruby 3.3.5
environment:
SELENIUM_DRIVER: firefox
script:
- cd ruby-gem && bundle exec appraisal "rails 6" rspec --format documentation spec/system
rails_7_chrome:
name: Chrome Rails 7 Ruby 3.3.5
script:
- cd ruby-gem && xvfb-run bundle exec appraisal "rails 7" rspec --format documentation spec/system
rails_7_firefox:
name: Firefox Rails 7 Ruby 3.3.5
environment:
SELENIUM_DRIVER: firefox
script:
- cd ruby-gem && bundle exec appraisal "rails 7" rspec --format documentation spec/system
build_10:
name: Jest
script:
- cd npm-api-maker && npm run test
build_11:
name: Rubocop
script:
- cd ruby-gem && bundle exec rubocop
build_12:
name: Rails Best Practices
script:
- cd ruby-gem && bundle exec rails_best_practices
build_13:
name: ESLint
script:
- cd npm-api-maker && node -e "console.log('set-state-compare', require('./node_modules/set-state-compare/package.json').version)"
- cd npm-api-maker && ls -la node_modules/set-state-compare && ls -la node_modules/set-state-compare/build
- cd npm-api-maker && npm run lint
build_14:
name: Expo Doctor
script:
- cd npm-api-maker && npx expo-doctor
build_15:
name: Typecheck
script:
- cd npm-api-maker && npm run typecheck