Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
armandfardeau committed Jul 1, 2023
1 parent 7a1111f commit fb010ad
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Ruby Gem

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rubocop
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Lint
run: bundle exec rubocop -P
tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
ruby_version: ['2.7', '3.0', '3.1', "3.2"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require: rubocop-rspec
AllCops:
Exclude:
- "*.gemspec"
- "vendor/bundle/**/*" # https://github.com/rubocop/rubocop/issues/9832#issuecomment-882111229
NewCops: enable

Style/StringLiterals:
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ GEM
racc (~> 1.4)
nokogiri (1.15.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.2-x86_64-linux)
racc (~> 1.4)
oauth2 (1.4.8)
faraday (>= 0.8, < 3.0)
jwt (>= 1.0, < 3.0)
Expand Down Expand Up @@ -122,6 +126,8 @@ GEM
PLATFORMS
aarch64-linux
arm64-darwin-21
x86_64-darwin-20
x86_64-linux

DEPENDENCIES
bundler (~> 2.4)
Expand Down

0 comments on commit fb010ad

Please sign in to comment.