-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (32 loc) · 897 Bytes
/
ci.yaml
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
name: ci
on: [push, pull_request]
jobs:
test:
if: github.actor != 'dependabot[bot]' && github.event_name == 'push' ||
github.event_name == 'pull_request'
strategy:
matrix:
rails: ["7.0", "7.1", "7.2"]
ruby: ["3.1", "3.2", "3.3"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install toolchain
run: |
sudo apt-get update
sudo apt-get install \
build-essential \
libsqlite3-dev
- name: Install bundler
run: gem install bundler
- env:
RAILS_VERSION: ${{ matrix.rails }}
name: Install dependencies
run: bundle install
- env:
RAILS_VERSION: ${{ matrix.rails }}
name: Test
run: bundle exec rspec