Skip to content

Commit f1fd167

Browse files
committed
adjust workflow
1 parent 76f1c43 commit f1fd167

2 files changed

Lines changed: 35 additions & 26 deletions

File tree

.github/workflows/go.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
2-
name: Go
1+
name: CI
32

43
on:
54
push:
6-
branches: [ "main" ]
5+
branches: ["main"]
76
pull_request:
8-
branches: [ "main" ]
7+
branches: ["main"]
98

109
jobs:
11-
1210
build:
11+
name: Build & Test
1312
runs-on: ubuntu-latest
13+
1414
steps:
15-
- uses: actions/checkout@v4.2.2
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: "1.23"
21+
cache: true
1622

17-
- name: Set up Go
18-
uses: actions/setup-go@v5.1.0
19-
with:
20-
go-version: '1.23'
23+
- name: Vet
24+
run: go vet ./...
2125

22-
- name: Build
23-
run: go build -mod=readonly -v ./...
26+
- name: Build
27+
run: CGO_ENABLED=0 go build -v ./cmd/server/
2428

25-
- name: Test
26-
run: go test -mod=readonly -v ./...
29+
- name: Test
30+
run: go test -v ./...

.gitignore

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,32 @@
1111
.env.development
1212
.env.staging
1313

14-
# vendor is committed to simplify Docker builds without network
15-
# vendor/
16-
17-
# Binaries for programs and plugins
14+
# Compiled binaries
15+
gateway
16+
server
17+
main
1818
*.exe
1919
*.exe~
2020
*.dll
2121
*.so
2222
*.dylib
2323

24-
# Test binary, built with `go test -c`
24+
# Test binary
2525
*.test
2626

27-
# Output of the go coverage tool, specifically when used with LiteIDE
27+
# Coverage
2828
*.out
29+
coverage.html
2930

30-
# Dependency directories (remove the comment below to include it)
31-
# vendor/
32-
33-
# Go workspace file
31+
# Go workspace
3432
go.work
33+
go.work.sum
34+
35+
# IDE
36+
.idea/
37+
.vscode/
38+
*.iml
3539

36-
# Swagger codegen output
37-
/output/.swagger-codegen/
40+
# OS
41+
.DS_Store
42+
Thumbs.db

0 commit comments

Comments
 (0)