-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci.yml
More file actions
27 lines (27 loc) · 792 Bytes
/
ci.yml
File metadata and controls
27 lines (27 loc) · 792 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
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)
- name: install dependencies
command: make tidy
- command: go build
test:
steps:
- command: which go &> /dev/null || (ln -s
/home/user/app/.codesphere-internal/go/bin/go /home/user/bin/go)
- command: make test
run:
go-service:
steps:
- command: ./go-demo
plan: 8
replicas: 1
isPublic: true
network:
path: /
stripPath: false