-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.dev.yml
More file actions
31 lines (31 loc) · 1015 Bytes
/
ci.dev.yml
File metadata and controls
31 lines (31 loc) · 1015 Bytes
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
schemaVersion: v0.2
prepare:
steps:
- name: install go
command: which go &> /dev/null || (rm -rf /usr/local/go && wget
https://go.dev/dl/go1.24.4.linux-amd64.tar.gz && tar -C
/home/user/app/.codesphere-internal -xzf go1.24.4.linux-amd64.tar.gz &&
rm go1.24.4.linux-amd64.tar.gz && ln -s
/home/user/app/.codesphere-internal/go/bin/go /home/user/bin/go)
- command: make tidy
test:
steps:
- name: create symlink to persistent go installation
command: which go &> /dev/null || (ln -s
/home/user/app/.codesphere-internal/go/bin/go /home/user/bin/go)
- name: testing go code base
command: go test -v ./utils
- name: "security check go "
command: make lint
run:
go-service:
steps:
- command: which go &> /dev/null || (ln -s
/home/user/app/.codesphere-internal/go/bin/go /home/user/bin/go)
- command: go run .
plan: 8
replicas: 1
isPublic: true
network:
path: /
stripPath: false