Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Bump the js group across 1 directory with 8 updates #115

Bump the js group across 1 directory with 8 updates

Bump the js group across 1 directory with 8 updates #115

Workflow file for this run

# Copyright 2024 Docker Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: E2E tests
on:
push:
branches:
- main
pull_request:
jobs:
e2e:
name: Run E2E tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install and start Docker Desktop
uses: docker/desktop-action/[email protected]
- name: Change Desktop settings and allow installing non marketplace extensions
run: |
curl --unix-socket ~/.docker/desktop/backend.sock --data '{"onlyMarketplaceExtensions": false}' -H "content-type: application/json" -X POST http://localhost/app/settings
- name: Disable login update prompt
run: |
curl --unix-socket ~/.docker/desktop/backend.sock http://localhost/features | jq . > features.json
jq '.LoginUpdatePrompt.enabled|=false' features.json > ./new-features.json
curl --unix-socket ~/.docker/desktop/backend.sock --data @new-features.json -H "content-type: application/json" http://localhost/features
- name: Build extension
run: |
make build-extension
- name: Kill Mono process running on port 8084 to unblock it # https://github.com/actions/runner-images/issues/2821
shell: bash
run: |
sudo fuser -k -n tcp 8084
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Run E2E tests
env:
SKIP_EXTENSION_IMAGE_BUILD: true
run: |
cd e2e/electron
yarn install
xvfb-run --auto-servernum --server-args="-screen 0 1920x1080x24" -- yarn test:e2e