Skip to content

Commit

Permalink
Extract rubocop CI job to separate stage
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyoffice-testing-robot committed Dec 8, 2023
1 parent d53fb6b commit decf7d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 41 in .github/workflows/linting.yml

View workflow job for this annotation

GitHub Actions / Yamllint

41:21 [new-line-at-end-of-file] no new line character at the end of file
2 changes: 0 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit decf7d3

Please sign in to comment.