Skip to content

Fix lint warnings and cache deps in ci #3

Fix lint warnings and cache deps in ci

Fix lint warnings and cache deps in ci #3

Workflow file for this run

name: Website Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
website_check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "npm"
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ github.event.pull_request.number }}-
- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Format
run: npx prettier --check .