Update dependency webpack to ^5.103.0 #3651
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: Unit tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "*" | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-unit: | |
| name: unit tests on ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-22.04 | |
| arch: x64 | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 60 | |
| env: | |
| DO_NOT_TRACK: "1" | |
| TURBOREPO_CACHE: ${{ github.workspace }}/.turbo | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| package-manager-cache: false | |
| - name: Setup pnpm | |
| run: corepack enable | |
| - name: Get pnpm cache directory | |
| shell: bash | |
| run: echo "pnpm_cache_dir=$(pnpm store path)" >> ${GITHUB_ENV} | |
| - name: Use pnpm cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.pnpm_cache_dir }} | |
| key: ${{ matrix.os }}-${{ matrix.arch }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ matrix.os }}-${{ matrix.arch }}-node- | |
| - name: Use Turborepo cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.TURBOREPO_CACHE }} | |
| key: ${{ matrix.os }}-${{ matrix.arch }}-turborepo-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }} | |
| restore-keys: | | |
| ${{ matrix.os }}-${{ matrix.arch }}-turborepo- | |
| - name: Install pnpm dependencies | |
| id: install-pnpm | |
| run: timeout 300 pnpm install --color=always --prefer-offline --frozen-lockfile | |
| continue-on-error: true | |
| - name: Install pnpm dependencies (retry) | |
| if: steps.install-pnpm.outcome == 'failure' | |
| run: timeout 300 pnpm install --color=always --prefer-offline --frozen-lockfile | |
| - name: Build packages | |
| run: pnpm --color=always --stream build | |
| - name: Run test units | |
| run: pnpm --color=always --stream test:unit | |
| - name: Clean after tests | |
| run: pnpm --color=always --parallel clean | |
| - name: Check untracked files | |
| shell: bash | |
| run: for f in $(git ls-files --others --exclude-standard); do git diff --no-index --stat --exit-code /dev/null $f; done |