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 - uses: pnpm/setup@731dfb6463bbd11c11fd0ee11fe00ed0e36d48a1 # v3.2.0 with: cache: true 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 - uses: pnpm/setup@731dfb6463bbd11c11fd0ee11fe00ed0e36d48a1 # v3.2.0 with: runtime: node@24.22.3 cache: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - 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: ๐Ÿ›  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@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # 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 - uses: pnpm/setup@731dfb6463bbd11c11fd0ee11fe00ed0e36d48a1 # v3.2.0 with: runtime: node@latest cache: true 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 pack-nightly: runs-on: ubuntu-latest if: github.repository_owner == 'nuxt' && github.event_name == 'push' && github.ref == 'refs/heads/main' outputs: files: ${{ steps.pack.outputs.files }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: persist-credentials: false fetch-depth: 0 - uses: pnpm/setup@731dfb6463bbd11c11fd0ee11fe00ed0e36d48a1 # v3.2.0 with: runtime: node@latest cache: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: ๐Ÿ›  Build project run: pnpm build - name: ๐Ÿ“ฆ Pack nightly id: pack uses: danielroe/uppt/pack@2c9a289359311b9661cc99886a71121209b89d17 # v0.6.14 with: checkout: false install: false nightly: true packages: | packages/create-nuxt packages/nuxi packages/nuxt-cli nightly: if: github.event_name == 'push' && github.ref == 'refs/heads/main' && needs.pack-nightly.outputs.files != '' needs: pack-nightly runs-on: ubuntu-latest concurrency: group: nightly-${{ github.ref }} cancel-in-progress: false permissions: id-token: write environment: nightly steps: - uses: danielroe/uppt/publish@2c9a289359311b9661cc99886a71121209b89d17 # v0.6.14 with: nightly: true files: ${{ needs.pack-nightly.outputs.files }}