Skip to content
name: Lint and Format Check on Pull Request
on:
- pull_request
jobs:
lint-and-format:
name: Run Lint and Format on /hubs, /sdk, and /web
runs-on: ubuntu-latest
defaults:
run:
working-directory: js
steps:
# Check out the repository
- uses: actions/checkout@v1
# Install dependencies
- run: yarn
# Run ESLint + Prettier on /hubs
- run: yarn hubs lint --quiet
- run: yarn hubs format
# Run ESLint + Prettier on /sdk
- run: yarn sdk lint --quiet
- run: yarn sdk format
# Run ESLint + Prettier on /web
- run: yarn web lint --quiet
- run: yarn web format