diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 001b00a..a167db7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -8,7 +8,48 @@ on: pull_request: jobs: - release: + build_web: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2 + name: Install pnpm + with: + version: 7 + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v3 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Sync node version and setup cache + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + cache: "pnpm" + + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + + - name: Lint + run: pnpm run lint + + - name: Build + run: pnpm run build + + build: + needs: build_web strategy: fail-fast: false matrix: diff --git a/package.json b/package.json index 2513b60..0226fc7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "build": "vite build", "preview": "vite preview", "tauri": "tauri", - "lint": "biome check --apply src/" + "lint": "biome check src/", + "lint:fix": "biome check --apply src/" }, "dependencies": { "@emotion/react": "^11.11.3", diff --git a/src/components/card/card.jsx b/src/components/card/card.jsx index b37953d..4600e91 100644 --- a/src/components/card/card.jsx +++ b/src/components/card/card.jsx @@ -93,7 +93,7 @@ export const Card = ({ aspectRatio: cardImageAspectRatios[cardType], }} > - +
- +