hedgedoc/.github/workflows/lint.yml
renovate[bot] c204b4c924 chore(deps): update actions/checkout action to v3.5.1
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-13 02:17:09 +00:00

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@83b7061638ee4956cf7545a6f7efe594e5ad0247 # v3.5.1
- name: Setup node
uses: ./.github/actions/setup-node
with:
NODEJS_VERSION: '16'
- 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