cwa-documentation/.github/workflows/checks.yml

41 lines
861 B
YAML
Raw Normal View History

name: Checks
on: pull_request
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install requirements
run: |
sudo apt install -y automake npm nodejs
- name: Checkout code
2022-10-27 08:11:04 +02:00
uses: actions/checkout@v3
2022-11-01 16:21:39 +01:00
- name: Setup Node.js 18 environment
2022-10-27 08:11:04 +02:00
uses: actions/setup-node@v3
with:
2022-11-01 16:21:39 +01:00
node-version: 'lts/hydrogen'
- name: Install npm dependencies
if: always()
run: |
npm install
- name: Linting markdown
if: always()
run: |
npm run-script markdownlint
- name: Checking for broken links
if: always()
run: |
npm run-script checklinks
#- name: Detect inconsiderate language
# if: always()
# run: |
# npm run-script detect-inconsiderate-language