docs: migrate guides from v1 to v2 Starlight #173
Workflow file for this run
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: Tests & Lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Setup PNPM | |
| uses: pnpm/[email protected] | |
| with: | |
| version: 9.11.0 | |
| - name: Install deps | |
| run: pnpm install --frozen-lockfile | |
| - name: Build package | |
| run: pnpm package | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Astro & Svelte Check | |
| run: pnpm check | |
| tests: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [18, 20, 22] | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Node ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Setup PNPM | |
| uses: pnpm/[email protected] | |
| with: | |
| version: 9.11.0 | |
| - name: Install deps | |
| run: pnpm install --frozen-lockfile | |
| - name: Build package | |
| run: pnpm package | |
| - name: Test | |
| run: pnpm test | |