-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
58 lines (51 loc) · 1.14 KB
/
.gitlab-ci.yml
File metadata and controls
58 lines (51 loc) · 1.14 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
image: golang:1.24.4
stages:
- test
cicd:
stage: test
services:
# Support Postgres
- name: postgres:15
alias: postgres
variables:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# Support memcached
- name: memcached:1.6-alpine
alias: memcached
command:
- -m
- "256"
- -I
- 10m
- -p
- "18080"
# Support S3
- name: quay.io/minio/minio:RELEASE.2023-07-07T07-13-57Z
alias: minio
variables:
LOG_LEVEL: info
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: password
command:
- server
- /data
- --console-address
- ":9090"
variables:
GOOGLE_APPLICATION_CREDENTIALS: gcp-creds.json
PGHOST: postgres
PGPORT: 5432
PGDATABASE: postgres
PGUSER: postgres
PGPASSWORD: postgres
MEMCACHED_HOST: memcached
MEMCACHED_PORT: 18080
AWS_ACCESS_KEY_ID: root
AWS_SECRET_ACCESS_KEY: password
UNITTEST_S3_ENDPOINT: minio:9000
script:
- go fmt $(go list ./...)
- go vet $(go list ./...)
- go test ./...