-
Notifications
You must be signed in to change notification settings - Fork 53
77 lines (63 loc) · 1.5 KB
/
ci.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
name: Run CI
on:
push:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main, 'feat/**' ]
paths-ignore:
- '**.md'
jobs:
build-linux:
runs-on: ubuntu-latest
env:
LD_SKIP_DATABASE_TESTS: 0
strategy:
fail-fast: false
matrix:
ruby-version:
- '3.0'
- '3.1'
- '3.2'
- jruby-9.4
services:
redis:
image: redis
ports:
- 6379:6379
dynamodb:
image: amazon/dynamodb-local
ports:
- 8000:8000
consul:
image: hashicorp/consul
ports:
- 8500:8500
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # If you only need the current version keep this.
- uses: ./.github/actions/ci
with:
ruby-version: ${{ matrix.ruby-version }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/build-docs
if: ${{ !startsWith(matrix.ruby-version, 'jruby') }}
build-windows:
runs-on: windows-latest
env:
LD_SKIP_DATABASE_TESTS: 1
defaults:
run:
shell: powershell
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler: 2.2.33
- name: Install dependencies
run: bundle _2.2.33_ install
- name: Run tests
run: bundle _2.2.33_ exec rspec spec