Skip to content

Commit

Permalink
Merge master to stable20 [devops] (#31)
Browse files Browse the repository at this point in the history
* [devops] Add multiple devops tools (#29)

* Add multiple devops tools

* docs: update TOC

Co-authored-by: R0Wi <[email protected]>

* TOC event

Co-authored-by: R0Wi <[email protected]>
  • Loading branch information
R0Wi and R0Wi authored Oct 13, 2020
1 parent 796222c commit 8aa6e6f
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 45 deletions.
5 changes: 5 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This is the template for release-drafter Github actions
template: |
## Changes
$CHANGES
16 changes: 16 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Backport
on:
pull_request:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-18.04
name: Backport
steps:
- name: Backport
uses: tibdex/backport@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Build artifact

on:
push:
branches:
- master
- stable*
workflow_dispatch:

env:
APP_NAME: workflow_ocr
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/lint-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CS-Fix

on:
pull_request:

jobs:
php-cs-fixer:
name: php-cs-fixer
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.4']

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Set up php
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php-versions }}
coverage: none

- name: Install dependencies
run: composer i

- name: Run coding standard formatter
run: composer run cs:fix

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply php-cs-fixer changes
24 changes: 0 additions & 24 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,6 @@ jobs:

- name: Lint
run: composer run lint

php-cs-fixer:
name: php-cs
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.4']

steps:
- name: Checkout
uses: actions/checkout@master

- name: Set up php
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
coverage: none

- name: Install dependencies
run: composer i

- name: Run coding standards check
run: composer run cs:check

nc-app-code-check:
name: nc-app-code-check-${{ matrix.php-versions }}-${{ matrix.databases }}-${{ matrix.server-versions }}
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release Drafter

on:
push:
branches:
- stable*

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/toc_generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
pull_request:
types: [opened, synchronize]
name: TOC Generator
jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- uses: technote-space/toc-generator@v2
with:
CREATE_PR: false
TOC_TITLE: "## Table of contents"
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,29 @@
[![Generic badge](https://img.shields.io/github/v/release/R0Wi/workflow_ocr)](https://github.com/R0Wi/workflow_ocr/releases)
[![Generic badge](https://img.shields.io/badge/Nextcloud-20-orange)](https://github.com/nextcloud/server)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
## Table of contents
* [Setup](#setup)
+ [App installation](#app-installation)
+ [Nextcloud background jobs](#nextcloud-background-jobs)
+ [Backend](#backend)
- [Imagick](#imagick)
- [Tesseract](#tesseract)
* [Usage](#usage)
* [How it works](#how-it-works)
+ [General](#general)
+ [PDF](#pdf)
* [Development](#development)
+ [Dev setup](#dev-setup)
+ [Debugging](#debugging)
+ [Executing tests](#executing-tests)
+ [Adding a new `OcrProcessor`](#adding-a-new--ocrprocessor-)
* [Limitations](#limitations)
* [Used libraries & components](#used-libraries---components)

- [Setup](#setup)
- [App installation](#app-installation)
- [Nextcloud background jobs](#nextcloud-background-jobs)
- [Backend](#backend)
- [Imagick](#imagick)
- [Tesseract](#tesseract)
- [Usage](#usage)
- [How it works](#how-it-works)
- [General](#general)
- [PDF](#pdf)
- [Development](#development)
- [Dev setup](#dev-setup)
- [Debugging](#debugging)
- [Executing tests](#executing-tests)
- [Adding a new `OcrProcessor`](#adding-a-new-ocrprocessor)
- [Limitations](#limitations)
- [Used libraries & components](#used-libraries--components)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Setup
### App installation
Expand Down

0 comments on commit 8aa6e6f

Please sign in to comment.