2022-05-10 17:26:08 -07:00
|
|
|
name: Lint
|
|
|
|
|
2022-05-10 17:29:50 -07:00
|
|
|
on:
|
|
|
|
push: {}
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- ready_for_review
|
2022-05-10 17:26:08 -07:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [16.x]
|
|
|
|
steps:
|
2022-09-03 13:41:25 +05:30
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
cache: yarn
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
|
|
|
|
- name: Install Yarn
|
|
|
|
run: npm i yarn --global
|
|
|
|
|
|
|
|
- name: Install Packages
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
env:
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
|
|
|
|
|
|
|
- name: Run Linting
|
|
|
|
run: yarn lint
|
|
|
|
|
|
|
|
- name: Verify Docs
|
|
|
|
run: yarn docs:verify
|