chore(deps): update dependency rolldown to v1.0.0-beta.46 #2387
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: | |
| - master | |
| paths-ignore: | |
| - '**/*.md' | |
| pull_request: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| env: | |
| CI: true | |
| NODE_OPTIONS: --max-old-space-size=6144 | |
| jobs: | |
| lint: | |
| name: Lint | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [24] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Setup node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' # eslint-disable-line yml/plain-scalar | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint codes | |
| run: pnpm lint | |
| build: | |
| name: Build | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node: [24] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Setup node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' # eslint-disable-line yml/plain-scalar | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build codes | |
| run: | | |
| pnpm build --all -t | |
| npx tsx ./scripts/postprocess.ts | |
| - name: Cache dist | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: packages/*/dist | |
| key: build-vue-i18n-os-${{ matrix.os }}-${{ github.sha }} | |
| build-rolldown: | |
| name: Build with rolldown | |
| strategy: | |
| matrix: | |
| # NOTE(kazupon): rolldown build fail out on windows... | |
| # os: [ubuntu-latest, windows-latest, macos-latest] | |
| os: [ubuntu-latest, macos-latest] | |
| node: [24] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Setup node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' # eslint-disable-line yml/plain-scalar | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build codes | |
| run: | | |
| pnpm build:rolldown --withTypes | |
| - name: Cache dist | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: packages/*/dist | |
| key: build-rolldown-vue-i18n-os-${{ matrix.os }}-${{ github.sha }} | |
| test-unit: | |
| name: Unit test | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node: [20, 22, 24] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Setup node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' # eslint-disable-line yml/plain-scalar | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run unit tests | |
| run: | | |
| pnpm test:cover | |
| test-e2e: | |
| name: E2E test | |
| needs: | |
| - build | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node: [20, 22, 24] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Setup node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' # eslint-disable-line yml/plain-scalar | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright | |
| run: pnpm playwright-core install chromium | |
| - name: Restore dist cache | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: packages/*/dist | |
| key: build-vue-i18n-os-${{ matrix.os }}-${{ github.sha }} | |
| - name: Run e2e tests | |
| run: pnpm test:e2e | |
| test-e2e-rolldown: | |
| name: E2E test for rolldown build | |
| needs: | |
| - build-rolldown | |
| strategy: | |
| matrix: | |
| # NOTE(kazupon): rolldown build fail out on windows... | |
| # os: [ubuntu-latest, windows-latest, macos-latest] | |
| os: [ubuntu-latest, macos-latest] | |
| node: [20, 22, 24] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Setup node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' # eslint-disable-line yml/plain-scalar | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright | |
| run: pnpm playwright-core install chromium | |
| - name: Restore dist cache | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: packages/*/dist | |
| key: build-rolldown-vue-i18n-os-${{ matrix.os }}-${{ github.sha }} | |
| - name: Run e2e tests | |
| run: pnpm test:e2e |