-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
137 lines (123 loc) · 2.56 KB
/
.gitlab-ci.yml
File metadata and controls
137 lines (123 loc) · 2.56 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
default:
interruptible: true
workflow:
rules:
- if: $CI_COMMIT_BRANCH =~ /^renovate\//
when: never
- when: always
stages:
- install
- build
- test
- publish
- docs
- post
variables:
NODE_VERSION: 22-alpine
NODE_PACKAGE_MANAGER: pnpm
NODE_INSTALL_ARGS: --ignore-scripts
NODE_LINT_COMMAND: lint
NODE_TEST_COMMAND: test
GITHUB_STATUS_PROJECT: listr2/listr2
SKIP_SIMPLE_GIT_HOOKS: '1'
include:
- project: devops/pipelines
ref: [email protected]
file:
- /node/install.gitlab-ci.yml
- /node/build.gitlab-ci.yml
- /node/lint.gitlab-ci.yml
- /node/test.gitlab-ci.yml
- /node/run.gitlab-ci.yml
inputs:
rules:
- when: always
- project: devops/pipelines
ref: [email protected]
file:
- /semantic-release/publish.gitlab-ci.yml
- project: devops/pipelines
ref: [email protected]
file:
- /buildah/build.gitlab-ci.yml
- /buildah/registry-gitlab.gitlab-ci.yml
- project: devops/pipelines
ref: [email protected]
file:
- /references/gh-status.gitlab-ci.yml
install:
stage: install
extends: .node-install
lint:
stage: build
extends: .node-lint
build:
stage: build
extends: .node-build
needs:
- install
dependencies:
- install
test:
stage: test
extends: .node-test
parallel:
matrix:
- NODE_VERSION: 24-alpine
- NODE_VERSION: 22-alpine
semantic-release:
stage: publish
extends: .semantic-release
variables:
SEMANTIC_RELEASE_WORKSPACE: 'true'
needs:
- build
- lint
- test
dependencies:
- build
build-docs:
stage: docs
extends: .node-run
before_script:
- apk update
- apk add git
variables:
NODE_COMMAND_SCRIPT: docs:build
NODE_COMMAND_CWD: ./docs
artifacts:
paths:
- ./docs/dist
needs:
- install
- build
- semantic-release
dependencies:
- install
- build
- semantic-release
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
when: on_success
- if: '$CI_COMMIT_REF_NAME =~ /^(next|next-major|alpha|beta|rc)$/'
when: on_success
- when: never
container-docs:
stage: post
extends: .container-build
variables:
CONTAINER_FILE_NAME: Dockerfile
CONTAINER_FILE_CONTEXT: ./docs
CONTAINER_IMAGE_NAME: docs-listr2
CONTAINER_IMAGE_TAGS: latest
needs:
- build-docs
dependencies:
- build-docs
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
when: on_success
- if: '$CI_COMMIT_REF_NAME =~ /^(next|next-major|alpha|beta|rc)$/'
when: on_success
- when: never