Skip to content

chore(deps-dev): bump @vscode/vsce from 3.9.2 to 4.0.0 #421

chore(deps-dev): bump @vscode/vsce from 3.9.2 to 4.0.0

chore(deps-dev): bump @vscode/vsce from 3.9.2 to 4.0.0 #421

Workflow file for this run

name: Visual checks
on:
pull_request:
types:
- ready_for_review
- opened
- reopened
- synchronize
paths-ignore:
- '.changeset/**'
- 'vue-press/**'
workflow_dispatch:
inputs:
head_sha:
description: Commit SHA to validate
required: true
type: string
pr_number:
description: Pull request number
required: true
type: number
concurrency:
group: visual-checks-${{ github.event_name }}-${{ inputs.pr_number || github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
jobs:
playwright:
name: Playwright (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
ignoreSnapshots: false
- os: windows-latest
ignoreSnapshots: true
runs-on: ${{ matrix.os }}
env:
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
PLAYWRIGHT_IGNORE_SNAPSHOTS: ${{ matrix.ignoreSnapshots }}
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.head_sha || github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Setup node and install deps
uses: ./.github/actions/node-setup
with:
cache-node-modules: 'true'
- name: Get Playwright version
id: playwright-version
shell: bash
run: |
version=$(pnpm --filter @equinor/fusion-framework-vitest-plugin-react-app exec playwright --version)
echo "version=${version#Version }" >> "$GITHUB_OUTPUT"
- name: Restore Playwright browsers
uses: actions/cache/restore@v6
with:
path: ${{ env.PLAYWRIGHT_BROWSERS_PATH }}
key: playwright-fusion-v2-${{ runner.os }}-${{ runner.arch }}-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright Chromium
run: pnpm --filter @equinor/fusion-framework-vitest-plugin-react-app exec playwright install chromium
- name: Run Playwright checks
shell: bash
run: pnpm turbo run test:playwright
required-check:
name: Visual checks
if: always()
needs:
- playwright
runs-on: ubuntu-latest
steps:
- name: Verify visual checks passed
env:
PLAYWRIGHT_RESULT: ${{ needs.playwright.result }}
run: |
if [[ "$PLAYWRIGHT_RESULT" != "success" ]]; then
echo "Playwright checks did not pass: $PLAYWRIGHT_RESULT"
exit 1
fi