Add job to workflow to run tests (#111)

Signed-off-by: Russell Troxel <russell.troxel@segment.com>
This commit is contained in:
Russell Troxel 2023-03-14 18:26:41 -07:00 committed by GitHub
parent 5abd638cbf
commit 016780ecde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ name: ci
on:
push:
branches:
branches:
- master
pull_request:
types:
@ -11,8 +11,29 @@ on:
- reopened
jobs:
go-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ">=1.19"
- name: Tidy
run: |
go version
go mod tidy
- name: Run Unit tests
run: |
go version
go test -v -race -covermode atomic -coverprofile=covprofile ./...
build:
runs-on: ubuntu-latest
needs: go-tests
if: "!contains(github.event.head_commit.message, '[ci-skip]')"
steps:
- name: Checkout