1
0
mirror of https://github.com/corona-warn-app/cwa-documentation synced 2024-05-29 04:48:03 +02:00
cwa-documentation/.github/workflows/checks.yml
Johannes Amorosa ff34c16450
feat: Use makefile targets for document linting
This Makefile provides several targets for linting
documents. It utilizes several npm packages.
Functionality includes:

* Spellcheck
* Linting of markdown
* Check for broken links
* Sorting of dictionary file
* Detect inconsidered language

All targets (excluding the sorting of the dict file) are part
of the Github Action pipeline and will fail if quality
standards are not met.

Signed-off-by: Johannes Amorosa <johannes.amorosa@endocode.com>
2020-07-01 13:18:50 +02:00

41 lines
784 B
YAML

name: Checks
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install requirements
run: |
sudo apt install -y automake npm nodejs
- name: Checkout code
uses: actions/checkout@v2
- name: Install npm dependencies
if: always()
run: |
make install
- name: Linting markdown
if: always()
run: |
make markdownlint
- name: Checking for broken links
if: always()
run: |
make checklinks
- name: Spellchecking english
if: always()
run: |
make spellcheck-en
- name: Detect inconsiderate language
if: always()
run: |
make detect-inconsiderate-language