| name: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| go-version: [ '1.18', '1.21' ] | |
| steps: | |
| - name: install memcached | |
| run: | | |
| sudo apt update | |
| sudo apt install memcached | |
| - uses: actions/checkout@v3 | |
| - name: Setup Go ${{ matrix.go-version }} | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Test | |
| run: go test -v ./... |