-
-
Notifications
You must be signed in to change notification settings - Fork 540
Expand file tree
/
Copy path.mise.toml
More file actions
74 lines (65 loc) · 2.15 KB
/
Copy path.mise.toml
File metadata and controls
74 lines (65 loc) · 2.15 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
[settings]
ruby.compile = false
[tools]
ruby = "latest"
node = "lts"
java = "temurin-21"
[env]
SENTRY_E2E_RAILS_APP_PORT = "{{ env.SENTRY_E2E_RAILS_APP_PORT | default(value='4000') }}"
SENTRY_E2E_SVELTE_APP_PORT = "{{ env.SENTRY_E2E_SVELTE_APP_PORT | default(value='4001') }}"
SENTRY_E2E_RAILS_APP_URL = "{{ env.SENTRY_E2E_RAILS_APP_URL | default(value='http://localhost:4000') }}"
SENTRY_E2E_SVELTE_APP_URL = "{{ env.SENTRY_E2E_SVELTE_APP_URL | default(value='http://localhost:4001') }}"
[tasks.lint]
description = "Lint the whole repo with rubocop"
dir = "{{ config_root }}"
env.BUNDLE_GEMFILE = "{{ config_root }}/Gemfile.rubocop"
run = [
"bundle check >/dev/null 2>&1 || bundle install",
"bundle exec rubocop"
]
[tasks."lint:fix"]
description = "Lint the whole repo with rubocop and autocorrect"
dir = "{{ config_root }}"
env.BUNDLE_GEMFILE = "{{ config_root }}/Gemfile.rubocop"
run = [
"bundle check >/dev/null 2>&1 || bundle install",
"bundle exec rubocop -a"
]
[tasks."services:redis"]
description = "Start a local Redis server for specs and e2e apps; waits until ready, no-op if already running"
run = """
redis-cli ping >/dev/null 2>&1 && exit 0
redis-server --daemonize yes --save '' --dir /tmp --pidfile /tmp/redis.pid
for _ in $(seq 1 30); do
redis-cli ping >/dev/null 2>&1 && exit 0
sleep 0.2
done
echo 'redis did not become ready' >&2
exit 1
"""
[tasks."e2e:rails"]
description = "Start the rails-mini e2e app"
depends = ["services:redis"]
dir = "{{ config_root }}/spec/apps/rails-mini"
run = [
"bundle check >/dev/null 2>&1 || bundle install",
"bundle exec ruby app.rb"
]
[tasks."e2e:svelte"]
description = "Start the svelte-mini e2e app"
dir = "{{ config_root }}/spec/apps/svelte-mini"
run = [
"npm install",
"npm run dev"
]
[tasks."e2e:worker"]
description = "Start the rails-mini ActiveJob worker (sidekiq/resque/delayed_job/solid_queue; idles for async/inline)"
depends = ["services:redis"]
dir = "{{ config_root }}/spec/apps/rails-mini"
run = [
"bundle check >/dev/null 2>&1 || bundle install",
"bundle exec ruby worker.rb"
]
[tasks."e2e:serve"]
description = "Start all e2e apps in parallel"
depends = ["e2e:rails", "e2e:svelte", "e2e:worker"]