23 lines
484 B
YAML
23 lines
484 B
YAML
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
|