added go test workflow
This commit is contained in:
parent
17946611f2
commit
08f8574dad
27
.github/workflows/go_test.yaml
vendored
Normal file
27
.github/workflows/go_test.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
name: Go Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20'
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
Loading…
x
Reference in New Issue
Block a user