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@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 persist-credentials: false - name: Install pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - name: Setup Node.js ${{ matrix.node }} uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.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@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 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@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 persist-credentials: false - name: Install pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - name: Setup Node.js ${{ matrix.node }} uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 with: node-version: ${{ matrix.node }} cache: 'pnpm' - name: Install dependencies run: pnpm install - name: Restore dist cache uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 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@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 persist-credentials: false - name: Install pnpm uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 - name: Setup Node.js ${{ matrix.node }} uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.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@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 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 }}