Skip to content
Merged
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
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@ name: build
on: push

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true

- name: Lint code for consistent style
run: bundle exec rubocop -f github
test:
runs-on: ubuntu-20.04
strategy:
Expand Down Expand Up @@ -48,8 +63,5 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop
if: ${{ matrix.ruby-version == '3.3' }}
- name: Run tests
run: bundle exec rspec