Skip to content

chore(deps): update dependency next to v14 [security] #8606

chore(deps): update dependency next to v14 [security]

chore(deps): update dependency next to v14 [security] #8606

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: [18.x]
os: [ubuntu-22.04, macos-11, windows-2022]
group: [1, 2, 3]
include:
- node-version: 20.x
os: ubuntu-22.04
group: 1
- node-version: 20.x
os: ubuntu-22.04
group: 2
- node-version: 20.x
os: ubuntu-22.04
group: 3
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-full-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-full-
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
run_install: true
- run: cd testing && pnpm exec playwright install
- run: pnpm turbo build
- run: pnpm turbo e2e-test --concurrency=1 -- --shard=${{ matrix.group }}/3 --workers=2
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, group $MATRIX_GROUP)"
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 == '18.x' && matrix.os == 'ubuntu-22.04' }}
shell: bash
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
MATRIX_OS: ${{ matrix.os }}
MATRIX_GROUP: ${{ matrix.group }}
- name: Fail if screenshots have changed on main branch
run: git diff --exit-code
if: ${{ github.ref == 'refs/heads/main' && matrix.node-version == '18.x' && matrix.os == 'ubuntu-22.04' }}