Skip to content

build(deps-dev): bump tar from 7.4.3 to 7.5.7 in /2025 #116

build(deps-dev): bump tar from 7.4.3 to 7.5.7 in /2025

build(deps-dev): bump tar from 7.4.3 to 7.5.7 in /2025 #116

Workflow file for this run

name: screenshots
on:
pull_request:
branches: [main]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: 2025/package-lock.json
- run: cd 2025 && npm ci
- run: cd 2025 && npm run dev &
env:
PORT: 3001
- run: cd 2025 && npx playwright install --with-deps
- run: cd 2025 && npx playwright test
- run: cd 2025 && npm run fetch-og-images
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: screenshots
path: 2025/screenshots/**/*
retention-days: 7
- uses: actions/github-script@v7
with:
script: |
const url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `📦 Screenshots: [Download](${url})`
});