Skip to content

chore(deps): update rspack monorepo to v2 (main) #1218

chore(deps): update rspack monorepo to v2 (main)

chore(deps): update rspack monorepo to v2 (main) #1218

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- gh-pages
pull_request:
branches-ignore:
- gh-pages
types:
- opened
- synchronize
- reopened
permissions:
contents: read
env:
CI: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: ${{ github.event_name != 'push' }}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [22]
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build code
run: pnpm build
- name: Cache dist
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: packages/*/lib
key: build-intlify-bundle-tools-os-${{ matrix.os }}-${{ github.sha }}
lint:
runs-on: ${{ matrix.os }}
needs:
- build
strategy:
matrix:
os: [ubuntu-latest]
node: [22]
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Restore dist cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: packages/*/lib
key: build-intlify-bundle-tools-os-${{ matrix.os }}-${{ github.sha }}
- name: Linting
run: pnpm lint
test:
runs-on: ${{ matrix.os }}
needs:
- build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [22, 24]
include:
- { framework: 'vite', vite_type: 'vite8' }
- { framework: 'vite', vite_type: 'vite6' }
- { framework: 'webpack', vite_type: '' }
- { framework: 'rspack', vite_type: '' }
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: pnpm playwright-core install chromium
- name: Restore dist cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: packages/*/lib
key: build-intlify-bundle-tools-os-${{ matrix.os }}-${{ github.sha }}
- name: Testing
run: pnpm test
env:
TEST_FRAMEWORK: ${{ matrix.framework }}
TEST_VITE_TYPE: ${{ matrix.vite_type }}