forked from cypress-io/cypress-example-kitchensink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (46 loc) · 1.63 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# https://www.appveyor.com/docs/appveyor-yml/
skip_commits:
# do not run for testing new Linux builds
message: /Testing new linux/
# https://www.appveyor.com/docs/build-environment/#build-worker-images
image: Visual Studio 2022
# https://www.appveyor.com/docs/lang/nodejs-iojs/
# Test against the latest version of this Node.js version
environment:
nodejs_version: "20"
# Install scripts. (runs after repo cloning)
install:
- ps: Install-Product node $env:nodejs_version
# Output useful info for debugging.
# we should be using npm v6+
- node --version
- npm --version
- npm i -g @cypress/commit-message-install @bahmutov/print-env
- print-env APPVEYOR
- commit-message-install --else "npm ci"
cache:
# cache npm packages and Cypress binary
# and invalidate the cache when package.json file changes
# https://www.appveyor.com/docs/build-cache/
- '%AppData%\npm -> package.json'
- '%USERPROFILE%\AppData\Local\Cypress\Cache -> package.json'
# Post-install test scripts.
test_script:
- npm run lint
# only run if there is commit message
# with new version
- run-if npm run cy:version
- run-if npm run cy:verify
- run-if npm run cy:info
- run-if npm run cy:cache:list
# noticed really slow execution of some specs on Windows
# leading to failures. Trying to increase the command timeout
# maybe it will solve it
- setx CYPRESS_defaultCommandTimeout 20000
- run-if npm run test:ci:record:chrome
- run-if npm run test:ci:record
# removed Firefox test due to flakiness in this environment
# - run-if npm run test:ci:record:firefox
- run-if npm run test:ci:record:edge
# Don't actually build.
build: off