Merge pull request #278 from dockercui/master #321
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test_lib: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go_version: ['1.22'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go_version }} | |
- name: Run library go tests | |
run: cd lib; go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic ./... | |
test_stores: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go_version: ['1.22'] | |
store: | |
- bigcache | |
- freecache | |
- go_cache | |
- hazelcast | |
- memcache | |
- pegasus | |
- redis | |
- rediscluster | |
- ristretto | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go_version }} | |
- name: Run stores go tests | |
run: cd store/${{ matrix.store }}; go test -v -race ./... |