From e591c212210fabe4f1de6a33a34146a5bee509f3 Mon Sep 17 00:00:00 2001 From: Cristian Bica Date: Thu, 5 Sep 2019 02:11:28 +0300 Subject: [PATCH] CI: Rubocop --- .github/workflows/gem.yml | 19 ++++++++++++++++++- azure-tts.gemspec | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gem.yml b/.github/workflows/gem.yml index 86dd614..b39fa28 100644 --- a/.github/workflows/gem.yml +++ b/.github/workflows/gem.yml @@ -4,6 +4,7 @@ on: [push] jobs: test: + name: Test runs-on: ubuntu-latest steps: - name: Checkout @@ -18,8 +19,24 @@ jobs: gem install bundler bundle install --jobs 4 --retry 3 bundle exec rake + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Set up Ruby 2.6 + uses: actions/setup-ruby@v1 + with: + ruby-version: 2.6.x + - name: Rubocop + uses: andrewmcodes/rubocop-linter-action@v0.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - publish: + release: + name: Release needs: test runs-on: ubuntu-latest steps: diff --git a/azure-tts.gemspec b/azure-tts.gemspec index 5370bcc..0ffe73b 100644 --- a/azure-tts.gemspec +++ b/azure-tts.gemspec @@ -29,9 +29,9 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", "~> 1.17" spec.add_development_dependency "minitest", "~> 5.0" spec.add_development_dependency "minitest-around" + spec.add_development_dependency "multi_json" spec.add_development_dependency "pry" spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency "vcr" spec.add_development_dependency "webmock" - spec.add_development_dependency "multi_json" end