mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-06 14:34:17 +01:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.5.0 to 7.0.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/249970729cb0ef3589644e2896645e5dc5ba9c38...820762786026740c76f36085b0efc47a31fe5020) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.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
|