2020-07-05 15:37:23 +02:00
|
|
|
name: Checks
|
|
|
|
|
2021-01-19 15:21:53 +01:00
|
|
|
on: pull_request
|
2020-07-05 15:37:23 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-01-08 12:28:48 +01:00
|
|
|
- name: Setup Node.js environment (v16)
|
2021-11-26 13:53:58 +01:00
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-01-08 12:28:48 +01:00
|
|
|
node-version: 'lts/gallium'
|
2021-11-26 13:53:58 +01:00
|
|
|
|
2020-07-05 15:37:23 +02:00
|
|
|
- name: Install npm dependencies
|
|
|
|
if: always()
|
|
|
|
run: |
|
2020-07-05 16:07:53 +02:00
|
|
|
npm install
|
2020-07-05 15:37:23 +02:00
|
|
|
|
2020-07-14 15:19:00 +02:00
|
|
|
- name: Linting markdown
|
|
|
|
if: always()
|
|
|
|
run: |
|
|
|
|
npm run-script markdownlint
|
2020-07-05 15:37:23 +02:00
|
|
|
|
|
|
|
- name: Checking for broken links
|
|
|
|
if: always()
|
|
|
|
run: |
|
2020-07-05 16:07:53 +02:00
|
|
|
npm run-script checklinks
|
2020-07-05 15:37:23 +02:00
|
|
|
|
2020-07-05 16:07:53 +02:00
|
|
|
#- name: Spellchecking english
|
|
|
|
# if: always()
|
|
|
|
# run: |
|
|
|
|
# npm run-script spellcheck
|
2020-07-05 15:37:23 +02:00
|
|
|
|
2020-07-05 16:07:53 +02:00
|
|
|
#- name: Detect inconsiderate language
|
|
|
|
# if: always()
|
|
|
|
# run: |
|
|
|
|
# npm run-script detect-inconsiderate-language
|