mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-18 21:36:52 +01:00
* Pin GitHub Actions to full-length commit SHAs * chore: attest to third-party action pinning changes I have reviewed the action-pinning diff authored by OssSecurityBot and verified that each pinned SHA resolves to the same commit the tag it replaces pointed at, and that no workflow logic was altered beyond the `uses:` references. This commit is signed with my key from security/trusted-signing-keys.csv so the attestation is bound to my identity and to this exact tree. Any subsequent push replaces the head and invalidates it. Refs #328868 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: OssSecurityBot <oss-security-bot@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
name: Sessions E2E Tests
|
|
|
|
# on:
|
|
# pull_request:
|
|
# branches:
|
|
# - main
|
|
# - 'release/*'
|
|
# paths:
|
|
# - 'src/vs/sessions/**'
|
|
# - 'scripts/code-sessions-web.*'
|
|
|
|
# just commenting "on" property causes emails to be sent to everyone
|
|
on: workflow_dispatch
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: sessions-e2e-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
sessions-e2e:
|
|
name: Sessions E2E Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- name: Install build tools
|
|
run: sudo apt update -y && sudo apt install -y build-essential pkg-config libx11-dev libx11-xcb-dev libxkbfile-dev libnotify-bin libkrb5-dev xvfb
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
env:
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Install build dependencies
|
|
run: npm ci
|
|
working-directory: build
|
|
|
|
- name: Transpile sources
|
|
run: npm run transpile-client
|
|
|
|
- name: Install E2E test dependencies
|
|
run: npm ci
|
|
working-directory: src/vs/sessions/test/e2e
|
|
|
|
- name: Install Playwright browsers
|
|
run: npx playwright install chromium
|
|
|
|
- name: Run Sessions E2E tests
|
|
run: xvfb-run npm test
|
|
working-directory: src/vs/sessions/test/e2e
|
|
|
|
- name: Upload failure screenshots
|
|
if: failure()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: sessions-e2e-failures
|
|
path: src/vs/sessions/test/e2e/out/failure-*.png
|
|
retention-days: 7
|