fix: Apply Prettier formatting to ai-sdk files #8
This file contains hidden or 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: Code Quality | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: ESLint & Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run ESLint | |
run: pnpm eslint | |
- name: Run Prettier | |
run: pnpm prettier | |
# This will fail the workflow if Prettier has warnings | |
- name: Run Tests | |
run: pnpm test |