2023-06-23 06:59:51 +00:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [$default-branch]
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2023-06-23 07:05:44 +00:00
|
|
|
setup_and_lint:
|
2023-06-23 06:59:51 +00:00
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
2024-01-15 23:31:18 +00:00
|
|
|
node-version: '18.19.0'
|
2023-06-23 06:59:51 +00:00
|
|
|
|
|
|
|
- name: Set yarn version
|
|
|
|
run: yarn set version 1.22.18
|
|
|
|
|
|
|
|
- name: Checkout Books
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: yarn
|
|
|
|
|
|
|
|
- name: Lint
|
2023-06-27 07:39:24 +00:00
|
|
|
run: yarn lint
|
|
|
|
|
|
|
|
- name: Check Formatting
|
|
|
|
run: yarn prettier --check .
|