-
Notifications
You must be signed in to change notification settings - Fork 25
63 lines (51 loc) · 1.35 KB
/
ruby.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
name: ruby
on:
push:
branches:
- main
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci --ignore-scripts
- run: make test-metrics-ruby-rails
- run: make test-webhooks-ruby-rails
- name: Cleanup
if: always()
run: docker-compose down
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/ruby
strategy:
matrix:
ruby-version:
# https://endoflife.date/ruby
- 2.7 # EOL: March 31st, 2023
- '3.0' # EOL: March 31st, 2024
- 3.1 # EOL: December 25th, 2025
rack-version:
# This will install the latest v2
- -v '>= 2.2' -v '< 3'
# This will install the latest v3
- -v '>= 2.2' -v '< 4'
name: build (${{ matrix.ruby-version }} w/ Rack ${{ matrix.rack-version }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
make install
gem install rack ${{ matrix.rack-version }}
- name: Run linter
run: make lint
- name: Run tests
run: make test