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-09-22 14:04:12 -04:00
|
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
2023-02-19 16:42:32 -05:00
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: ./.github/actions/setup-node
|
|
|
|
with:
|
2023-05-28 14:48:54 -04:00
|
|
|
NODEJS_VERSION: '20'
|
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
|