Skip to content

Add test and optimize readme #1

Add test and optimize readme

Add test and optimize readme #1

Workflow file for this run

name: Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: |
npm run lint -- --fix
if [ "$(git diff | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes. See status below:"
git diff
exit 1
fi