add gotest workflow
This commit is contained in:
1 parent
8cdaa472c5
commit
cd5e571422
1 file changed
+22
@@ -0,0 +1,22 @@
|
||||
name: gotest
|
||||
on: [push]
|
||||
jobs:
|
||||
go:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.25.x"
|
||||
- name: go env
|
||||
run: |
|
||||
go version
|
||||
go env GOPROXY
|
||||
- name: vet
|
||||
working-directory: gotest
|
||||
run: go vet ./...
|
||||
- name: build & run
|
||||
working-directory: gotest
|
||||
run: |
|
||||
go build -o app . && ./app
|
||||
echo GO_JOB_OK
|
||||
Reference in new issue
Block a user