forked from Uninen/vite-ts-tailwind-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (36 loc) · 821 Bytes
/
.gitlab-ci.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
image: node:14
stages:
- test
variables:
npm_config_cache: '$CI_PROJECT_DIR/.npm'
CYPRESS_CACHE_FOLDER: '$CI_PROJECT_DIR/cache/Cypress'
YARN_CACHE_FOLDER: '/root/.cache/yarn'
cache:
paths:
- /root/.cache/
- cache/Cypress
- $CI_PROJECT_DIR/node_modules/
key: ${CI_COMMIT_REF_SLUG}
test:
stage: test
image:
name: cypress/included:9.5.1
entrypoint: ['']
script:
# Uncomment for debugging
# - export
- yarn cache dir
- cd -- "$CI_PROJECT_DIR"
- yarn --frozen-lockfile
- yarn test:ci
- yarn test:ci-components
- yarn start
- yarn test:ci-e2e
coverage: '/Lines\s+:\s(\d+.?\d+)%/'
artifacts:
paths:
- '$CI_PROJECT_DIR/tests/e2e/videos/*.mp4'
- '$CI_PROJECT_DIR/coverage'
expire_in: 2 weeks
when: on_failure
timeout: 15m