add testing
This commit is contained in:
parent
99959726c8
commit
cf63da919e
1 changed files with 14 additions and 0 deletions
|
@ -10,7 +10,21 @@ on:
|
|||
- "main"
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-docker
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.22'
|
||||
cache: true
|
||||
- name: Run unit tests
|
||||
run: go test -v ./...
|
||||
|
||||
release:
|
||||
needs: test
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-docker
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue