mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
32 lines
706 B
YAML
32 lines
706 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
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.0'
|
|
bundler-cache: true
|
|
- name: Install dependencies
|
|
run: |
|
|
bundle install
|
|
- name: Rubocop
|
|
run: |
|
|
gem install rubocop
|
|
rubocop
|