Update year in license #10
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: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.md" | |
| pull_request: | |
| paths-ignore: | |
| - "**/*.md" | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: [1.21.x, 1.22.x, 1.23.x] | |
| db-version: [6.x, 7.x] | |
| distribution: [redis] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Start Database | |
| uses: shogo82148/actions-setup-redis@v1 | |
| with: | |
| redis-version: ${{ matrix.db-version }} | |
| distribution: ${{ matrix.distribution }} | |
| auto-start: "true" | |
| - name: Wait for Database to Start | |
| run: sleep 10 | |
| - name: Fetch Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| go-version-file: go.mod | |
| cache-dependency-path: go.sum | |
| - name: Test | |
| working-directory: . | |
| run: go run gotest.tools/gotestsum@latest -f testname -- ./... -race -count=1 -shuffle=on |