style:修正代码格式 #1
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: CI | |
on: | |
pull_request: | |
branches: main | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
- name: Cache | |
id: cache-dependencies | |
uses: actions/cache@v3 | |
with: | |
path: | | |
**/node_modules | |
.pnpm-store | |
key: ${{ runner.OS }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
- name: Install Dependencies | |
if: steps.cache-dependencies.outputs.cache-hit != 'true' | |
run: pnpm install | |
- name: Running Lint | |
run: pnpm lint |