[feat] 사물함 데이터 업데이트 #100
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: Check code | |
on: | |
pull_request: | |
types: [ opened, edited, reopened, synchronize ] | |
jobs: | |
check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: | | |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
- name: Setup pnpm cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build client | |
run: pnpm -r --filter=client build | |
- name: Run prettier check | |
run: pnpm -r prettier | |
- name: Run eslint in server and types | |
run: pnpm -r --filter=!client lint | |
- name: Run eslint on changed files in client | |
uses: tj-actions/eslint-changed-files@v25 | |
with: | |
path: "./packages/client" | |
file_extensions: "**/*.{ts, svelte}" | |
- name: Run svelte-check | |
run: pnpm -r check |