-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 722 Bytes
/
ci.yml
File metadata and controls
34 lines (32 loc) · 722 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
34
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Ruby 3.0.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.2
- name: Cache Gems
uses: actions/cache@v5.0.4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: ${{ runner.os }}-gems-
- name: Build
run: |
gem install bundler
bundle install
- name: Static analysis
run: bundle exec rubocop
- name: Run tests
run: bundle exec rspec --format documentation