Remove seed vr snapshots
CI Pipeline / test (20) (pull_request) Successful in 7m13s
CI Pipeline / test (18) (pull_request) Successful in 7m19s
CI Pipeline / e2e (chromium) (pull_request) Successful in 2m46s
CI Pipeline / e2e (firefox) (pull_request) Successful in 3m43s
CI Pipeline / e2e (webkit) (pull_request) Successful in 3m22s
CI Pipeline / visual-regression (pull_request) Successful in 4m53s
CI Pipeline / performance (pull_request) Successful in 3m47s
CI Pipeline / storybook (pull_request) Successful in 1m33s
CI Pipeline / lint (pull_request) Failing after 1m0s
CI Pipeline / build (pull_request) Successful in 1m23s
CI Pipeline / test (20) (pull_request) Successful in 7m13s
CI Pipeline / test (18) (pull_request) Successful in 7m19s
CI Pipeline / e2e (chromium) (pull_request) Successful in 2m46s
CI Pipeline / e2e (firefox) (pull_request) Successful in 3m43s
CI Pipeline / e2e (webkit) (pull_request) Successful in 3m22s
CI Pipeline / visual-regression (pull_request) Successful in 4m53s
CI Pipeline / performance (pull_request) Successful in 3m47s
CI Pipeline / storybook (pull_request) Successful in 1m33s
CI Pipeline / lint (pull_request) Failing after 1m0s
CI Pipeline / build (pull_request) Successful in 1m23s
This commit is contained in:
@@ -332,41 +332,6 @@ jobs:
|
|||||||
name: lhci-results
|
name: lhci-results
|
||||||
path: lhci-results
|
path: lhci-results
|
||||||
|
|
||||||
seed-vr-snapshots:
|
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
runs-on: [self-hosted, macos-latest]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
if: ${{ github.server_url == 'https://github.com' }}
|
|
||||||
with: { node-version: 20, cache: npm }
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
if: ${{ github.server_url != 'https://github.com' }}
|
|
||||||
with: { node-version: 20 }
|
|
||||||
- run: npm ci
|
|
||||||
- name: Install Playwright
|
|
||||||
run: npx playwright install --with-deps
|
|
||||||
- run: npm run build
|
|
||||||
- name: Start app + wait
|
|
||||||
run: |
|
|
||||||
node node_modules/next/dist/bin/next start -p 3010 -H 127.0.0.1 > .next/runner.log 2>&1 &
|
|
||||||
npx wait-on -t 120000 tcp:127.0.0.1:3010
|
|
||||||
- name: Generate snapshots for ALL projects
|
|
||||||
env:
|
|
||||||
{
|
|
||||||
PLAYWRIGHT_UPDATE_SNAPSHOTS: "1",
|
|
||||||
BASE_URL: "http://127.0.0.1:3010",
|
|
||||||
}
|
|
||||||
run: npx playwright test tests/e2e/visual-regression.spec.ts --project=chromium --project=firefox --project=webkit --project=mobile
|
|
||||||
- name: Commit snapshots
|
|
||||||
run: |
|
|
||||||
if [ -n "$(git status --porcelain tests/e2e/visual-regression.spec.ts-snapshots/)" ]; then
|
|
||||||
git config --local user.email "action@github.com"
|
|
||||||
git config --local user.name "GitHub Action"
|
|
||||||
git add tests/e2e/visual-regression.spec.ts-snapshots/
|
|
||||||
git commit -m "Seed Playwright VR snapshots (CI, all projects)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
storybook:
|
storybook:
|
||||||
runs-on: [self-hosted, macos-latest]
|
runs-on: [self-hosted, macos-latest]
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user