fix(dev): prime mtimes cache when starting dev server #3135
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 | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - run: corepack enable | |
| - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| - name: π Lint project | |
| run: pnpm lint | |
| - name: βοΈ Knip project | |
| run: pnpm test:knip | |
| # - 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/-1 | |
| cache: pnpm | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: 2.5.6 | |
| - 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 | |
| - if: matrix.os != 'windows-latest' | |
| uses: codecov/codecov-action@v5 | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| if: github.repository_owner == 'nuxt' | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - run: corepack enable | |
| - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.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' | |
| run: node ./scripts/release.mjs | |
| env: | |
| RELEASE_TYPE: nightly |