-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
47 lines (44 loc) · 1.09 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
# This folder is cached between builds
# https://docs.gitlab.com/ee/ci/yaml/index.html#cache
cache:
paths:
- node_modules/
- services/apis/gql/generated/graphql.ts
stages:
- build
- quality
build:
image: ubuntu:latest
stage: build
before_script:
- apt update && apt install -y curl unzip
- curl -fsSL https://fnm.vercel.app/install | bash
- export PATH=/root/.fnm:$PATH
- eval "`fnm env`"
- fnm install && fnm use
- curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
script:
- pnpm install
- pnpm generate-vercel
- pnpm run build
only:
- master
- preprod
- prod
- merge_requests
quality:
image: ubuntu:latest
stage: quality
before_script:
- apt update && apt install -y curl unzip
- curl -fsSL https://fnm.vercel.app/install | bash
- export PATH=/root/.fnm:$PATH
- eval "`fnm env`"
- fnm install && fnm use
- curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
script:
- pnpm run lint
- pnpm audit --audit-level=high --only=prod
only:
- master
- merge_requests