Skip to content

Ruby: add code linter #63

Ruby: add code linter

Ruby: add code linter #63

Workflow file for this run

name: Ruby
on:
push:
branches: [ main ]
paths:
- ".github/workflows/ruby.yml"
- "ruby/**"
- "test-resources/**"
pull_request:
branches: [ main ]
paths:
- ".github/workflows/ruby.yml"
- "ruby/**"
- "test-resources/**"
jobs:
lint_and_test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./ruby
strategy:
matrix:
ruby-version: ["3.2", "3.1", "3.0", "2.7"]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle
- name: Lint code
run: rubocop
- name: Build and install gem
run: gem build truelayer-signing.gemspec && gem install ./truelayer-signing-0.2.1.gem
- name: Run tests
run: rake test