diff --git a/.gitea/workflows/go.yml b/.gitea/workflows/go.yml index 01e8bcc..c6bc16e 100644 --- a/.gitea/workflows/go.yml +++ b/.gitea/workflows/go.yml @@ -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: