mirror of
https://github.com/corona-warn-app/cwa-documentation
synced 2024-05-29 04:48:03 +02:00
ff34c16450
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>
41 lines
784 B
YAML
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
|