Add action to run tests
This commit is contained in:
parent
e0edfd0d50
commit
3587b40703
20
.gitea/workflows/go-test.yaml
Normal file
20
.gitea/workflows/go-test.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: Go Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: 1.21
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test ./..
|
Loading…
Reference in New Issue
Block a user