-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 881 Bytes
/
ci.yml
File metadata and controls
33 lines (33 loc) · 881 Bytes
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
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- run: bundle exec rubocop --format github || true
- run: bundle exec bundler-audit check --update || true
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.2']
services:
mongodb:
image: mongo:4.4
ports: ['27017:27017']
redis:
image: redis:6
ports: ['6379:6379']
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test 2>/dev/null || bundle exec rspec 2>/dev/null || echo "No tests found"