chore(deps): update dependency publint to v0.3.18 #1345
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/CD | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| env: | |
| CI: true | |
| jobs: | |
| test: | |
| name: Unit Tests & Coverage | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.52.0-noble | |
| options: --user 1001 | |
| timeout-minutes: 10 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: latest | |
| - 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 | |
| - name: Verify Playwright versions match | |
| run: | | |
| # Extract Playwright version from apps/web/package.json | |
| PACKAGE_VERSION=$(node -p "require('./apps/web/package.json').devDependencies.playwright.replace(/[\^~]/, '')") | |
| # Extract version from container image (from this workflow file) | |
| CONTAINER_VERSION=$(grep -o 'playwright:v[0-9.]*' .github/workflows/unit-test.yml | sed 's/playwright:v//') | |
| echo "📦 Package.json Playwright version: $PACKAGE_VERSION" | |
| echo "🐳 Container image Playwright version: $CONTAINER_VERSION" | |
| if [ "$PACKAGE_VERSION" != "$CONTAINER_VERSION" ]; then | |
| echo "❌ ERROR: Playwright versions don't match!" | |
| echo " Package.json: $PACKAGE_VERSION" | |
| echo " Container: $CONTAINER_VERSION" | |
| echo " Please update either:" | |
| echo " - apps/web/package.json devDependencies.playwright to ^$CONTAINER_VERSION" | |
| echo " - Container image to mcr.microsoft.com/playwright:v$PACKAGE_VERSION-noble" | |
| exit 1 | |
| else | |
| echo "✅ Playwright versions match: $PACKAGE_VERSION" | |
| fi | |
| - name: Build svead package | |
| run: pnpm run build:packages | |
| - name: Tests & Coverage (svead) | |
| run: pnpm run coverage | |
| working-directory: packages/svead | |
| env: | |
| PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }} | |
| PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }} | |
| - name: Tests & Coverage (web) | |
| run: pnpm run coverage | |
| working-directory: apps/web | |
| env: | |
| PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }} | |
| PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }} |