mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
3dfe9722c9
Signed-off-by: David Mehren <git@herrmehren.de>
32 lines
697 B
YAML
32 lines
697 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
name: Lint files
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
- name: Setup node
|
|
uses: ./.github/actions/setup-node
|
|
with:
|
|
NODEJS_VERSION: '22'
|
|
|
|
- name: Run ESLint
|
|
run: yarn run eslint
|
|
|
|
- name: Lint markdown files
|
|
run: yarn run markdownlint
|
|
|
|
- name: Lint shell scripts with shellcheck
|
|
run: shellcheck bin/heroku bin/setup
|
|
|
|
- name: Lint JSON files
|
|
run: sudo apt install -y jq && yarn run jsonlint
|