Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit b75a97b

Browse files
committed
configure go github workflow for doko
1 parent b8ed48a commit b75a97b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/go.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.17
19+
20+
- name: Build
21+
run: |
22+
go run ./scripts/date.go >> date.txt
23+
go build -ldflags "-X main.version=$(git describe --abbrev=0 --tags) -X main.buildDate=$(cat date.txt)" -o doko
24+
25+
- name: Test
26+
run: go test -v ./...

0 commit comments

Comments
 (0)