ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
name: Component Fixtures
on:
push:
branches:
- main
- 'release/*'
pull_request:
branches:
- main
- 'release/*'
permissions:
contents: read
statuses: write
pull-requests: write
id-token: write
concurrency:
group: component-fixtures-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
screenshots:
name: Screenshots & Tests
runs-on: ubuntu-latest
steps
Checkout
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
Setup Node.js
actions/setupnode@820762786026740c76f36085b0efc47a31fe5020
.nvmrc
Restore node_modules cache
cachenodemodules
./.github/actions/restorenodemodules
node_modulescomponentfixtures
Install dependencies
steps.cachenodemodules.outputs.cachehit 'true'
npm ci ignorescripts
$ secrets.GITHUB_TOKEN
Install build dependencies
steps.cachenodemodules.outputs.cachehit 'true'
npm ci
build
Install rspack dependencies
steps.cachenodemodules.outputs.cachehit 'true'
npm ci
build/rspack
Save node_modules cache
github.event_name 'pull_request' steps.cachenodemodules.outputs.cachehit 'true'
./.github/actions/savenodemodules
Copy codicons
cp node_modules/@vscode/codicons/dist/codicon.ttf src/vs/base/browser/ui/codicons/codicon/codicon.ttf
Build component explorer
npx rspack build config rspack.serveout.config.mts
build/rspack
Upload component explorer
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
componentexplorer
.build/rspackserveout/
Install Playwright Chromium
npx playwright install chromium
Install Playwright test dependencies
npm ci
test/componentFixtures/playwright
Install Playwright Chromium (tests)
npx playwright install chromium
test/componentFixtures/playwright
Run Playwright fixture tests
npx playwright test
test/componentFixtures/playwright
Upload Playwright test results
failure()
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
playwrighttestresults
test/componentFixtures/playwright/testresults/
Capture screenshots
./node_modules/.bin/componentexplorer render project ./test/componentFixtures/componentexplorer.json
Check fixture errors
fixture_errors
always()
Check blocksci screenshots
blocksci
always()
Upload screenshots as artifact
actions/uploadartifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
always()
screenshots
test/componentFixtures/.screenshots/current/
Determine base SHA
base
$ github.event.pull_request.base.ref
$ github.sha
Get OIDC token (nonfork only)
oidc
github.event_name == 'push' (github.event_name == 'pull_request' github.event.pull_request.head.repo.full_name == github.repository)
Upload screenshots to service
steps.oidc.outputs.token
$ steps.oidc.outputs.token
Fetch base commit manifest
base_manifest
$ steps.base.outputs.base_sha
Diff screenshots
diff
always()
Build comment body
comment_body
always() (steps.diff.outputs.has_changes == 'true' steps.blocksci.outputs.match == 'false')
Write job summary
always() steps.comment_body.outputs.path
cat "$ steps.comment_body.outputs.path " "$GITHUB_STEP_SUMMARY"
Post PR comment (nonfork PR only)
always() github.event_name == 'pull_request' github.event.pull_request.head.repo.full_name == github.repository
actions/githubscript@3a2844b7e9c422d3c10d287c895573f7108da1b3
const comments = await github.rest.issues.listComments(
context.repo.owner
context.repo.repo
context.issue.number
);
const existing = comments.find(c = c.body.startsWith(marker));
if (
// No changes to report — update existing comment if present otherwise do nothing
if (existing)
const baseSha = (process.env.BASE_SHA '').slice(0 8);
const currentSha = (process.env.CURRENT_SHA '').slice(0 8);
let noChangesBody = '~No screenshot changes.~';
if (baseSha currentSha)
noChangesBody = ` \`$baseSha\` \`$currentSha\`\n\n` + noChangesBody;
await github.rest.issues.updateComment(
context.repo.owner
context.repo.repo
existing.id
marker + '\n' + noChangesBody
);
return;
body = marker + '\n' + body;
if (existing)
await github.rest.issues.updateComment(
context.repo.owner
context.repo.repo
existing.id
body
);
else
await github.rest.issues.createComment(
context.repo.owner
context.repo.repo
context.issue.number
body
);
$ steps.comment_body.outputs.path
$ steps.base.outputs.base_sha
$ github.sha
Fail if blocksci hashes changed
steps.blocksci.outputs.match == 'false'
Fail if fixtures had errors
always() steps.fixture_errors.outputs.has_errors == 'true'