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
|
2024-08-28 16:16:51 -04:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-02-19 16:42:32 -05:00
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: ./.github/actions/setup-node
|
|
|
|
with:
|
2024-08-31 09:19:50 -04:00
|
|
|
NODEJS_VERSION: '22'
|
2023-02-19 16:42:32 -05:00
|
|
|
|
|
|
|
- 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
|