-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 868 Bytes
/
tests.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
name: tests
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
test:
name: Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile }}
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
strategy:
matrix:
gemfile:
- Gemfile
- gemfiles/rails-7-0.gemfile
- gemfiles/rails-6-1.gemfile
- gemfiles/rails-6-0.gemfile
ruby:
- '3.0'
- '2.7'
- '2.6'
exclude:
- ruby: '3.0'
gemfile: gemfiles/rails-6-0.gemfile
- ruby: '2.6'
gemfile: gemfiles/rails-7-0.gemfile
gemfile: Gemfile
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake