v4.0.0-alpha.1 #4556
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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 3.x | |
| pull_request: | |
| branches: | |
| - main | |
| - 3.x | |
| merge_group: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: {} | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| persist-credentials: false | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: π Lint project | |
| run: pnpm lint | |
| - name: βοΈ Knip project | |
| run: pnpm test:knip | |
| - name: π Check command docs are in sync | |
| run: pnpm test:docs | |
| # - name: βοΈ Check package engines | |
| # run: pnpm test:engines | |
| ci: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| persist-credentials: false | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: lts/-1 | |
| cache: pnpm | |
| - parallel: | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version: latest | |
| - uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2 | |
| with: | |
| # 2.7.5+ regress dev server / ws tests; 2.7.13 rewrites node:http (denoland/deno#33208) | |
| deno-version: 2.7.4 | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: π Build project | |
| run: pnpm build | |
| - name: πͺ Test types | |
| run: pnpm test:types | |
| - name: π§ͺ Test built `nuxi` | |
| run: pnpm test:dist | |
| - name: π·ββοΈ Prepare playground | |
| run: pnpm nuxt prepare playground | |
| - name: π§ͺ Test (unit) | |
| run: pnpm test:unit | |
| - name: π§ͺ Test the dev UI against Nuxt nightly | |
| if: matrix.os == 'ubuntu-latest' | |
| run: pnpm --filter nuxt-cli-playground-nightly test | |
| - if: matrix.os != 'windows-latest' | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7 | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| if: github.repository_owner == 'nuxt' && github.event_name != 'merge_group' | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: latest | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: π Build project | |
| run: pnpm build | |
| - name: π¦ release pkg.pr.new | |
| run: pnpm pkg-pr-new publish --compact --template './playground' ./packages/create-nuxt ./packages/nuxi ./packages/nuxt-cli | |
| - name: π¦ release nightly | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| run: node ./scripts/release-nightly.mjs |