Skip to content

chore(deps): update dependency chalk to ^5.4.1 #9486

chore(deps): update dependency chalk to ^5.4.1

chore(deps): update dependency chalk to ^5.4.1 #9486

Workflow file for this run

name: Test Preview.js end-to-end
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths:
- "**"
- ".github/workflows/test-app-e2e.yaml"
- "!assets/**"
- "!integrations/**"
pull_request:
branches:
- "*"
paths:
- "**"
- ".github/workflows/test-app-e2e.yaml"
- "!assets/**"
- "!integrations/**"
jobs:
e2e-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [22.x]
os: [ubuntu-24.04, macos-14, windows-2022]
include:
- node-version: 18.x
os: ubuntu-24.04
- node-version: 20.x
os: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-full-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-full-
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
run_install: true
- run: cd testing && pnpm exec playwright install
- run: pnpm turbo build
- run: pnpm turbo e2e-test --concurrency=1
env:
PREVIEWJS_LOG_LEVEL: "debug"
- name: Update screenshots on non-main branches
run: |
git add .
if [[ $(git status --short) ]]; then
git status
echo "::set-env name=SCREENSHOTS_CHANGED::1"
git stash
git config user.name 'CI bot'
git config user.email 'ci-bot@users.noreply.github.com'
git fetch
git checkout ${{ github.head_ref }}
git pull
git stash pop || echo "Conflict on git stash pop."
git commit --allow-empty -am "bot: update screenshots ($MATRIX_OS)"
if ! git push origin ${{ github.head_ref }}; then
# Try again as it may be a race condition.
git pull --rebase
git push origin ${{ github.head_ref }}
fi
else
echo "No changes detected."
fi
if: ${{ github.ref != 'refs/heads/main' && matrix.node-version == '22.x' && matrix.os == 'ubuntu-24.04' }}
shell: bash
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
MATRIX_OS: ${{ matrix.os }}
- name: Fail if screenshots have changed on main branch
run: git diff --exit-code
if: ${{ github.ref == 'refs/heads/main' && matrix.node-version == '22.x' && matrix.os == 'ubuntu-24.04' }}