mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
38 lines
755 B
YAML
38 lines
755 B
YAML
name: Rubocop
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master, main]
|
|
paths: ['web/documentserver-example/ruby/**']
|
|
pull_request:
|
|
branches: [master, main, develop]
|
|
paths: ['web/documentserver-example/ruby/**']
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./web/documentserver-example/ruby
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.2.2'
|
|
|
|
- name: Update Submodules
|
|
run: |
|
|
git submodule update --init --recursive
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
bundle install
|
|
|
|
- name: Rubocop
|
|
run: |
|
|
bundle exec rubocop
|