-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
63 lines (59 loc) · 1.01 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
stages:
- ci-go
- build-typescript
- test-typescript
- ci-rust
ci-go:
image: golang:1.20
stage: ci-go
script:
- go test -coverprofile=coverage.out -json ./... | tee test-report.json
only:
changes:
- 2022/**/*
- 2024/go/**/*
artifacts:
when: always
paths:
- test-report.json
- coverage.out
expire_in: 10 minutes
build-typescript:
image: node:latest
only:
changes:
- 2023/**/*
stage: build-typescript
artifacts:
paths:
- dist
cache:
key: $CI_COMMIT_REF_NAME
policy: push
paths:
- node_modules
script:
- yarn
- yarn build
test-typescript:
image: node:latest
only:
changes:
- 2023/**/*
stage: test-typescript
cache:
key: $CI_COMMIT_REF_NAME
policy: pull
paths:
- node_modules
script:
- yarn test
coverage: '/All files[^|]*\|[^|]*\s+([\d\.]+)/'
ci-rust:
image: rust:latest
only:
changes:
- 2024/src/**/*
stage: ci-rust
script:
- cargo test > report.xml