Skip to content

Commit 8365926

Browse files
chore: Remove windows runs from CI (#1447)
* Remove windows runs from CI * Add back project persist to workspace
1 parent deb12da commit 8365926

File tree

2 files changed

+0
-150
lines changed

2 files changed

+0
-150
lines changed

.circleci/config.yml

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ version: 2.1
22
orbs:
33
cypress: cypress-io/[email protected]
44
codecov: codecov/[email protected] #
5-
win: circleci/[email protected]
65

76
executors:
87
with-chrome-and-firefox:
@@ -29,8 +28,6 @@ commands:
2928
paths:
3029
# for linux builds
3130
- .cache/Cypress
32-
# for windows builds
33-
- AppData/Local/Cypress/Cache
3431
- project
3532
root: ~/
3633
attach_ws:
@@ -42,20 +39,6 @@ commands:
4239
- run:
4340
name: Install curl
4441
command: apt-get update && apt-get install -y curl
45-
# Setup Windows
46-
# 1. Add nvm and install node 18.16.0
47-
# 2. Install yarn
48-
setup_node_and_yarn_windows:
49-
steps:
50-
- run:
51-
name: Install node 18
52-
command: nvm install 18.16.0
53-
- run:
54-
name: Use node 18
55-
command: nvm use 18.16.0
56-
- run:
57-
name: Install yarn
58-
command: npm i --location=global yarn
5942
# Setup
6043
# 1. Install Cypress
6144
# 2. Validate types
@@ -151,19 +134,6 @@ jobs:
151134
executor: with-chrome-and-firefox
152135
steps:
153136
- setup_project_and_cypress
154-
setup_project_and_cypress_windows:
155-
executor:
156-
# executor comes from the "windows" orb
157-
name: win/default
158-
shell: bash.exe
159-
size: large
160-
steps:
161-
- setup_node_and_yarn_windows
162-
- run:
163-
name: Disabling Windows Defender
164-
shell: powershell.exe
165-
command: Set-MpPreference -DisableRealtimeMonitoring $true
166-
- setup_project_and_cypress
167137
cypress_tests_linux:
168138
executor: with-chrome-and-firefox
169139
parallelism: 5
@@ -197,38 +167,6 @@ jobs:
197167
isMobile: <<parameters.isMobile>>
198168
isComponent: <<parameters.isComponent>>
199169
recordPercy: <<parameters.recordPercy>>
200-
cypress_tests_windows:
201-
executor:
202-
# executor comes from the "windows" orb
203-
name: win/default
204-
shell: bash.exe
205-
parallelism: 5
206-
parameters:
207-
browser:
208-
type: string
209-
default: chrome
210-
specPattern:
211-
type: string
212-
default: ""
213-
ciBuildId:
214-
type: string
215-
group:
216-
type: string
217-
isMobile:
218-
type: boolean
219-
default: false
220-
isComponent:
221-
type: boolean
222-
default: false
223-
steps:
224-
- setup_node_and_yarn_windows
225-
- cypress_tests:
226-
browser: <<parameters.browser>>
227-
specPattern: <<parameters.specPattern>>
228-
ciBuildId: <<parameters.ciBuildId>>
229-
group: <<parameters.group>>
230-
isMobile: <<parameters.isMobile>>
231-
isComponent: <<parameters.isComponent>>
232170

233171
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Workflows ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
234172
linux-workflow: &linux-workflow
@@ -291,22 +229,6 @@ linux-workflow: &linux-workflow
291229
requires:
292230
- Setup Linux
293231

294-
windows-workflow: &windows-workflow
295-
jobs:
296-
- setup_project_and_cypress_windows:
297-
name: "Setup Windows"
298-
# Run E2E tests in Windows in Electron
299-
- cypress_tests_windows:
300-
name: "UI Tests - Electron - Windows"
301-
browser: electron
302-
specPattern: "cypress/tests/ui/*"
303-
ciBuildId: ${CIRCLE_SHA1:0:8}
304-
group: "UI - Electron - Windows"
305-
requires:
306-
- Setup Windows
307-
308232
workflows:
309233
linux:
310234
<<: *linux-workflow
311-
windows:
312-
<<: *windows-workflow

.github/workflows/main.yml

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -35,34 +35,6 @@ jobs:
3535
if-no-files-found: error
3636
path: build
3737

38-
install-windows:
39-
runs-on: windows-2022
40-
steps:
41-
- name: Checkout
42-
uses: actions/checkout@v3
43-
- uses: actions/setup-node@v3
44-
with:
45-
node-version: "18.16.0"
46-
47-
- name: Cypress install
48-
uses: cypress-io/github-action@v6
49-
with:
50-
runTests: false
51-
# report machine parameters
52-
- run: yarn cypress info
53-
- run: node -p 'os.cpus()'
54-
- run: yarn types
55-
- run: yarn lint
56-
- run: yarn test:unit:ci
57-
- run: yarn build:ci
58-
59-
- name: Save build folder
60-
uses: actions/upload-artifact@v3
61-
with:
62-
name: build
63-
if-no-files-found: error
64-
path: build
65-
6638
ui-chrome-tests:
6739
timeout-minutes: 15
6840
runs-on: ubuntu-latest
@@ -252,47 +224,3 @@ jobs:
252224
# Recommended: pass the GitHub token lets this action correctly
253225
# determine the unique run id necessary to re-run the checks
254226
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
255-
256-
ui-windows-tests:
257-
timeout-minutes: 40
258-
runs-on: windows-2022
259-
needs: install-windows
260-
strategy:
261-
# when one test fails, DO NOT cancel the other
262-
# containers, because this will kill Cypress processes
263-
# leaving Cypress Cloud hanging ...
264-
# https://github.com/cypress-io/github-action/issues/48
265-
fail-fast: false
266-
matrix:
267-
# run copies of the current job in parallel
268-
containers: [1, 2, 3, 4, 5]
269-
steps:
270-
- name: Checkout
271-
uses: actions/checkout@v3
272-
- uses: actions/setup-node@v3
273-
with:
274-
node-version: "18.16.0"
275-
276-
- name: Download the build folders
277-
uses: actions/download-artifact@v3
278-
with:
279-
name: build
280-
path: build
281-
282-
- name: "UI Tests - Electron - Windows"
283-
uses: cypress-io/github-action@v6
284-
with:
285-
start: yarn start:ci
286-
wait-on: "http://localhost:3000"
287-
wait-on-timeout: 120
288-
record: true
289-
parallel: true
290-
group: "UI - Electron - Windows"
291-
spec: cypress/tests/ui/*
292-
config-file: cypress.config.ts
293-
env:
294-
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
295-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
296-
# Recommended: pass the GitHub token lets this action correctly
297-
# determine the unique run id necessary to re-run the checks
298-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)