Skip to content

Merge pull request #9 from kitex-contrib/chore/update-mod #57

Merge pull request #9 from kitex-contrib/chore/update-mod

Merge pull request #9 from kitex-contrib/chore/update-mod #57

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
unit-benchmark-test:
strategy:
matrix:
go: ["1.21", "1.22", "1.23"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true # don't use cache for self-hosted runners
- name: Unit Test
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Benchmark
run: go test -bench=. -benchmem -run=none ./...