Skip to content

Commit

Permalink
feat: add RSpec and Rubocop workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andrecego committed Feb 8, 2024
1 parent 5960c1a commit 4fa3364
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: RSpec

on:
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run RSpec
run: bundle exec rspec
26 changes: 26 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Rubocop

on:
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

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

- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run RuboCop
run: bundle exec rubocop

0 comments on commit 4fa3364

Please sign in to comment.