diff options
Diffstat (limited to '.github/workflows/test.yaml')
-rw-r--r-- | .github/workflows/test.yaml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..8f31fd2 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + +jobs: + + test: + strategy: + matrix: + go-version: [1.19, '1.20'] + + name: Unit Tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + check-latest: true + + - run: go test -coverprofile=coverage.txt -covermode=atomic -race ./... + + - uses: codecov/codecov-action@v3.1.1 |