2023-02-19 16:42:32 -05:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Lint files
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-04-13 09:45:29 -04:00
|
|
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2023-02-19 16:42:32 -05:00
|
|
|
|
|
|
|
- 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
|