-
-
Notifications
You must be signed in to change notification settings - Fork 138
47 lines (44 loc) · 1.08 KB
/
Copy pathci.yml
File metadata and controls
47 lines (44 loc) · 1.08 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
45
46
47
name: build
on:
- push
- pull_request
jobs:
test:
name: "Test: Ruby ${{ matrix.ruby }}"
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
ports:
- 27017:27017
env:
MONGO_HOST: 127.0.0.1:27017
strategy:
fail-fast: false
matrix:
ruby: [3.2, 3.3, 3.4, "4.0"]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Ruby Version
run: ruby --version
- name: Run Tests
run: bundle exec rake
rubocop:
name: "RuboCop"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
# runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop --parallel