chore(deps): update dependency pino-pretty to ^10.2.3 #6687
Workflow file for this run
This file contains 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: 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: 16.x | |
os: ubuntu-22.04 | |
group: 1 | |
- node-version: 16.x | |
os: ubuntu-22.04 | |
group: 2 | |
- node-version: 16.x | |
os: ubuntu-22.04 | |
group: 3 | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache pnpm modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-full-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-full- | |
- uses: pnpm/[email protected] | |
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 '[email protected]' | |
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' }} |