More data attrs update #2320
  
    
      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 | |
| permissions: | |
| contents: read | |
| on: ["push", "pull_request"] | |
| jobs: | |
| ci: | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.experimental }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [24.9.0] | |
| experimental: [false] | |
| name: π· QDS CI Node-${{ matrix.node }} under ${{ matrix.os }} | |
| steps: | |
| - name: π Get latest code | |
| uses: actions/checkout@v4 | |
| - name: π Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: π¦ Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.14.4 | |
| run_install: false | |
| - name: ποΈ Get pnpm store directory | |
| shell: bash | |
| run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - name: πΎ Setup pnpm cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: β¨ Install dependencies | |
| run: pnpm install --frozen-lockfile --prefer-offline | |
| - name: π Get Playwright version | |
| id: playwright-version | |
| run: | | |
| VERSION=$(jq -r '.devDependencies.playwright' package.json | tr -d '^~') | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: πΎ Cache Playwright browsers | |
| uses: actions/cache@v4 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}-chromium | |
| restore-keys: | | |
| ${{ runner.os }}-playwright- | |
| - name: π Install Playwright browsers | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| run: pnpm exec playwright install chromium --with-deps | |
| - name: πΎ Cache build outputs | |
| uses: actions/cache@v4 | |
| id: build-cache | |
| with: | |
| path: | | |
| libs/tools/dist | |
| libs/tools/lib | |
| libs/tools/lib-types | |
| libs/utils/lib | |
| libs/utils/lib-types | |
| libs/components/lib | |
| libs/components/lib-types | |
| **/tsconfig.tsbuildinfo | |
| key: ${{ runner.os }}-build-${{ hashFiles('libs/tools/**', 'libs/utils/**', 'libs/components/**', '!**/node_modules/**') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build- | |
| - name: π¨ Build underlying tools, utilities, and components | |
| if: steps.build-cache.outputs.cache-hit != 'true' | |
| run: | | |
| pnpm --filter ./libs/tools build | |
| pnpm --filter ./libs/utils build | |
| pnpm --filter ./libs/components build | |
| - name: β Check code style | |
| run: pnpm check | |
| - name: π§ͺ Run tests | |
| run: pnpm test |