Skip to content

Commit

Permalink
CI is run on all supported rubies (#341)
Browse files Browse the repository at this point in the history
* CI is run on all supported rubies

* Pensing test runs
  • Loading branch information
VitaliySerov authored Dec 29, 2023
1 parent b133d70 commit c5e2e40
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,19 @@ 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
- name: Check that code 100% documented
run: yardoc . | grep -q '100.00% documented'
20 changes: 13 additions & 7 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,23 @@ on: [push]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow-failures }}
strategy:
matrix:
ruby: ['3.0', '3.1', '3.2']
allow-failures: [false]
include:
- ruby: head
allow-failures: true
steps:
- uses: actions/checkout@v2
- name: Set latest stable ruby
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Setup ruby dependencies
ruby-version: ${{ matrix.ruby }}
- name: Build and test with Rake
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Check source files using `rubocop`
run: rubocop
- name: Check that code 100% documented
run: yardoc . | grep -q '100.00% documented'
# Until https://github.com/ONLYOFFICE-QA/wrata_api/issues/342 is resolved
# bundle exec rake
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

* Fix `rubocop-1.28.1` code issues
* Drop `ruby-2.6`, `ruby-2.7` support since it's EOL'ed
* CI is run on all supported rubies

## 1.1.0 (2022-04-07)

Expand Down

0 comments on commit c5e2e40

Please sign in to comment.