forked from nov/paypal-express
-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (33 loc) · 933 Bytes
/
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
name: CI
on:
push:
pull_request:
jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
min_version: 3.2
engine: cruby
test:
needs: ruby-versions
name: Ruby ${{ matrix.ruby-version}}, Rails ${{ matrix.rails-version }}
runs-on: ubuntu-latest
env:
RAILS_VERSION: ${{ matrix.rails-version }}
strategy:
matrix:
ruby-version: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
rails-version:
- "~> 7.0"
- "~> 7.1"
- "~> 7.2"
- "~> 8.0"
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake