Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Ruby CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.2', '3.4']

steps:
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Run tests
run: ./bin/rspec

- name: Run RuboCop
run: ./bin/rubocop --fail-level=error
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require:
plugins:
- rubocop-rspec

AllCops:
Expand Down
4 changes: 2 additions & 2 deletions spec/fc_enrich/fake_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module FcEnrich

it 'works for /v3/person.enrich that do not exist' do
data = subject.post("/v3/person.enrich", { email: "someone@mail.com" })
expect(data).to be_blank
expect(data).to be_nil
end

it 'works for /v3/company.enrich' do
Expand All @@ -25,7 +25,7 @@ module FcEnrich

it 'works for /v3/company.enrich that do not exist' do
data = subject.post("/v3/company.enrich", { domain: "someone.com" })
expect(data).to be_blank
expect(data).to be_nil
end

it 'allows to change folder' do
Expand Down