-
Notifications
You must be signed in to change notification settings - Fork 89
85 lines (66 loc) · 1.65 KB
/
tests.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
80
81
82
83
84
85
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test_gem:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.3
bundler-cache: true
- name: Run tests
run: |
bundle exec rspec
test_examples:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Start dependencies
run: |
docker compose \
-f examples/docker-compose.yml \
up -d
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.3
- name: Bundle install
run: |
cd examples && bundle install --path vendor/bundle
- name: Wait for dependencies to settle
run: |
sleep 10
- name: Register namespace
run: |
cd examples && bin/register_namespace ruby-samples
- name: Wait for namespace to settle
run: |
sleep 10
- name: Boot up worker
run: |
cd examples && bin/worker &
- name: Boot up crypt worker
env:
USE_ENCRYPTION: 1
run: |
cd examples && bin/worker &
- name: Boot up worker for v2 error serialization tests
env:
USE_ERROR_SERIALIZATION_V2: 1
run: |
cd examples && bin/worker &
- name: Run RSpec
env:
USE_ERROR_SERIALIZATION_V2: 1
run: |
cd examples && bundle exec rspec