-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
72 lines (68 loc) · 1.85 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# ensure that a docker runner is used
default:
# this is actually quite bad since in ci arrays are always overwritten.
# it is likely better to add that line by hand!
tags:
- env:docker
stages:
- build
- test
- pages
build-branch:
# make sure to use a docker runner for all jobs
tags:
- env:docker
# use node latest for all jobs
image: node:20
variables:
# temporary fix: https://github.com/renovatebot/renovate/discussions/9481#discussioncomment-660412
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
stage: build
before_script:
# always install dependencies, will come from cache and is usually fast
- yarn install
script:
- yarn run build
artifacts:
# all build results are expected to be in the `dist` folder
paths:
- dist
expire_in: 1 week
test:
# make sure to use a docker runner for all jobs
tags:
- env:docker
# use node latest for all jobs
image: node:20
variables:
# temporary fix: https://github.com/renovatebot/renovate/discussions/9481#discussioncomment-660412
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
stage: test
before_script:
# always install dependencies, will come from cache and is usually fast
- yarn install
script:
- yarn run test
pages:
# make sure to use a docker runner for all jobs
tags:
- env:docker
# use node latest for all jobs
image: node:20
variables:
# temporary fix: https://github.com/renovatebot/renovate/discussions/9481#discussioncomment-660412
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
stage: pages
before_script:
# always install dependencies, will come from cache and is usually fast
- yarn install
script:
- yarn run build && mv dist public
artifacts:
# all build results are expected to be in the `public` folder
paths:
- public
expire_in: 1 year
only:
refs:
- main