Repository navigation
fix: use setGlobalProxyFromEnv to enable proxy
#4988
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 | |
| - uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.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@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0 | |
| with: | |
| runtime: node@24.21.0 | |
| 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@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.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 | |
| - name: 📦 release nightly | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| # the runner image ships npm 10, which predates OIDC trusted publishing | |
| run: | | |
| npm install -g npm@latest | |
| node ./scripts/release-nightly.mjs |