-
Notifications
You must be signed in to change notification settings - Fork 288
44 lines (37 loc) · 1.02 KB
/
ci.yml
File metadata and controls
44 lines (37 loc) · 1.02 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
name: Ruby Test 💎
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
test:
name: 💎 Test with Ruby ${{ matrix.ruby-version }}
strategy:
fail-fast: false
matrix:
ruby-version:
- '3.1.7'
- '3.2.9'
- '3.3.10'
- '3.4.8'
- '4.0.0'
runs-on: ubuntu-22.04
steps:
- name: 🔄 Checkout Repository
uses: actions/checkout@v4
- name: 🛠️ Setup Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: ☁️ Set up test cloud
run: |
export CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)
echo "CLOUDINARY_URL=$CLOUDINARY_URL" >> $GITHUB_ENV
echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)"
- name: 🧪 Run tests
run: bundle exec rspec --format documentation --color
env:
CLOUDINARY_URL: ${{ env.CLOUDINARY_URL }}