forked from coinbase/temporal-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
73 lines (62 loc) · 1.63 KB
/
config.yml
File metadata and controls
73 lines (62 loc) · 1.63 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
version: 2.1
orbs:
ruby: circleci/ruby@0.1.2
jobs:
test_gem:
docker:
- image: circleci/ruby:2.6.3-stretch-node
executor: ruby/default
steps:
- checkout
- ruby/bundle-install
- run:
name: Run RSpec
command: bundle exec rspec
test_examples:
docker:
- image: circleci/ruby:2.6.3-stretch-node
- image: circleci/postgres:alpine
name: postgres
environment:
POSTGRES_PASSWORD: temporal
- image: temporalio/auto-setup:latest
name: temporal
environment:
- DB=postgresql
- DB_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgres
- DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml
environment:
- TEMPORAL_HOST=temporal
steps:
- checkout
- run:
name: Bundle Install
command: cd examples && bundle install --path vendor/bundle
- run:
name: Register Namespace
command: cd examples && bin/register_namespace ruby-samples
- run:
name: Wait for Namespace to settle
command: sleep 15
- run:
name: Boot up worker
command: cd examples && bin/worker
background: true
- run:
name: Boot up crypt worker
command: cd examples && bin/worker
background: true
environment:
USE_ENCRYPTION: 1
- run:
name: Run RSpec
command: cd examples && bundle exec rspec
workflows:
version: 2
test:
jobs:
- test_gem
- test_examples