Skip to content

refactor: use docsify instead of docusaurus (#10) #27

refactor: use docsify instead of docusaurus (#10)

refactor: use docsify instead of docusaurus (#10) #27

name: Static Analysis
on:
workflow_dispatch:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
paths-ignore: ['static/**', '.gitignore', '.tool-versions']
push:
branches: [main]
paths-ignore: ['static/**', '.gitignore', '.tool-versions']
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
uses: pnpm/[email protected]
id: pnpm-install
with:
version: 8.6.11
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- name: Install
run: pnpm i --ignore-scripts --no-frozen-lockfile
- name: Format || Build
run: pnpm validate