-
Notifications
You must be signed in to change notification settings - Fork 32
85 lines (83 loc) · 2.17 KB
/
nightly-acceptance-tests-on-emulator.yaml
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
on:
schedule:
# 06:00 UTC
- cron: '0 6 * * *'
workflow_dispatch:
name: nightly acceptance tests on emulator
jobs:
test:
runs-on: ubuntu-latest
services:
emulator:
image: gcr.io/cloud-spanner-emulator/emulator:latest
ports:
- 9010:9010
- 9020:9020
strategy:
max-parallel: 4
matrix:
# Run acceptance tests all supported combinations of Ruby and ActiveRecord.
ruby: [2.6, 2.7, 3.0, 3.1, 3.2]
ar: [6.0.0, 6.0.1, 6.0.2.2, 6.0.3.7, 6.0.4, 6.1.3.2, 6.1.4.7, 6.1.5.1, 6.1.6.1, 7.0.2.4, 7.0.3.1, 7.0.4, 7.0.5, 7.0.6, 7.0.7]
# Exclude combinations that are not supported.
exclude:
- ruby: 3.0
ar: 6.0.0
- ruby: 3.0
ar: 6.0.1
- ruby: 3.0
ar: 6.0.2.2
- ruby: 3.0
ar: 6.0.3.7
- ruby: 3.0
ar: 6.0.4
- ruby: 3.1
ar: 6.0.0
- ruby: 3.1
ar: 6.0.1
- ruby: 3.1
ar: 6.0.2.2
- ruby: 3.1
ar: 6.0.3.7
- ruby: 3.1
ar: 6.0.4
- ruby: 3.2
ar: 6.0.0
- ruby: 3.2
ar: 6.0.1
- ruby: 3.2
ar: 6.0.2.2
- ruby: 3.2
ar: 6.0.3.7
- ruby: 3.2
ar: 6.0.4
- ruby: 2.6
ar: 7.0.2.4
- ruby: 2.6
ar: 7.0.3.1
- ruby: 2.6
ar: 7.0.4
- ruby: 2.6
ar: 7.0.5
- ruby: 2.6
ar: 7.0.6
- ruby: 2.6
ar: 7.0.7
env:
AR_VERSION: ${{ matrix.ar }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
# Disable caching as we are overriding the ActiveRecord below.
bundler-cache: false
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
- name: Run acceptance tests on emulator
run: bundle exec rake acceptance
env:
SPANNER_EMULATOR_HOST: localhost:9010
SPANNER_TEST_PROJECT: test-project
SPANNER_TEST_INSTANCE: test-instance