diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index b101cae..b98ad47 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -25,3 +25,17 @@ jobs: run: | npm install -g markdownlint-cli markdownlint *.md + rubocop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up latest stable ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ruby + - name: Setup rubocop + run: | + bundle config set with 'development' + bundle install + - name: Run Rubocop + run: rubocop \ No newline at end of file diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index bcc52c2..4b2e633 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -22,8 +22,6 @@ jobs: run: | gem install bundler bundle install --jobs 4 --retry 3 - - name: Check source files using `rubocop` - run: rubocop - name: Run tests env: ONLYOFFICE_API_GEM_TEST_PORTAL: ${{ secrets.ONLYOFFICE_API_GEM_TEST_PORTAL }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 422c7f7..269eb2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ * Add `Logger` support in rspec test results * Drop `ruby-2.5`, `ruby-2.6`, `ruby-2.7` support, since it's EOL'ed * Run `codecov` in CI only on latest ruby +* Extract `rubocop` CI job to separate stage ## 1.0.1 (2022-02-21)