feat: Add "Copy for AI" button to package page #400
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: ci | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| - name: π Lint project | |
| run: pnpm lint | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| - name: π Install browser | |
| run: pnpm playwright install | |
| - name: πͺ Type check | |
| run: pnpm test:types | |
| - name: π§ͺ Unit test | |
| run: pnpm test:unit | |
| - name: π Component tests | |
| run: pnpm test:nuxt | |
| browser: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.57.0-noble | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| - name: π₯οΈ Test project (browser) | |
| run: pnpm test:browser | |
| a11y: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| - name: ποΈ Build project | |
| run: pnpm build | |
| - name: βΏ Accessibility audit (Lighthouse) | |
| run: pnpx @lhci/cli autorun | |
| env: | |
| LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} |