Theme Tools Release — 2026-08-05 #3590
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
| # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| code-quality: | |
| runs-on: ubuntu-latest | |
| name: Code quality | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| submodules: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| with: | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| cache-dependency-path: "pnpm-lock.yaml" | |
| - name: Install the packages | |
| run: pnpm install --frozen-lockfile | |
| - name: Build the code | |
| run: pnpm build:ci | |
| - name: Type check (for tests) | |
| run: pnpm type-check | |
| - name: Check formatting | |
| run: pnpm format:check | |
| e2e: | |
| runs-on: ubuntu-latest | |
| name: E2E tests | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| submodules: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| with: | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| cache-dependency-path: "pnpm-lock.yaml" | |
| - name: Install the packages | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright browsers | |
| working-directory: packages/vscode-extension | |
| run: | | |
| node -e "const path = require('node:path'); const testWeb = path.dirname(require.resolve('@vscode/test-web/package.json')); const browser = path.dirname(require.resolve('@playwright/browser-chromium/package.json', { paths: [testWeb] })); require(path.join(browser, 'install.js'));" | |
| - name: Build the code | |
| run: pnpm build | |
| - name: Run the E2E tests | |
| run: pnpm test:e2e | |
| tests: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest] | |
| node-version: [22, 24] | |
| name: Tests / OS ${{ matrix.os }} / NodeJS ${{ matrix.node-version }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| submodules: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| with: | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: "pnpm" | |
| cache-dependency-path: "pnpm-lock.yaml" | |
| - name: Install the packages | |
| run: pnpm install --frozen-lockfile | |
| - name: Build the code | |
| run: pnpm build:ts | |
| - name: Run the unit tests | |
| run: pnpm test | |
| - name: Run the prettier2 unit tests | |
| run: pnpm --dir packages/prettier-plugin-liquid test | |
| - name: Run the prettier2 idempotence tests | |
| run: pnpm --dir packages/prettier-plugin-liquid test:idempotence | |
| - name: Run the prettier3 unit tests | |
| run: pnpm --dir packages/prettier-plugin-liquid test:3 | |
| - name: Run the prettier3 idempotence tests | |
| run: pnpm --dir packages/prettier-plugin-liquid test:idempotence:3 |