Skip to content

Commit 417fcd2

Browse files
authored
ci: setup SemaphoreCI v2 (#479)
Update Semaphore configuration
1 parent aa16691 commit 417fcd2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.semaphore/semaphore.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: v1.0
2+
name: Go
3+
agent:
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu2004
7+
blocks:
8+
- name: Test
9+
task:
10+
jobs:
11+
- name: go test
12+
commands:
13+
- sem-version go 1.17
14+
- export GO111MODULE=on
15+
- export GOPATH=~/go
16+
- 'export PATH=/home/semaphore/go/bin:$PATH'
17+
- checkout
18+
- go version
19+
- go get ./...
20+
- go test ./...
21+
- go build -v .

0 commit comments

Comments
 (0)