Skip to content

feat: as child type imports #2306

feat: as child type imports

feat: as child type imports #2306

Workflow file for this run

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