Docs Example (Persist API): Avoid 'any', avoid "might be null" error and make example clearer #1590
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Type | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: yarn | |
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- run: yarn install --frozen-lockfile --check-files | |
- run: cd examples/demo && yarn install --frozen-lockfile --check-files | |
- name: Prettier | |
run: yarn prettier:ci | |
- name: Lint | |
run: yarn eslint:ci | |
- name: Type | |
run: yarn pretest |