chore: release v0.2.3 #31
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "stable" | |
| cache: true | |
| cache-dependency-path: | | |
| go.sum | |
| examples/go.sum | |
| integration/go.sum | |
| storagetest/go.sum | |
| driver/*/go.sum | |
| - name: Download dependencies | |
| run: | | |
| go mod download | |
| cd examples | |
| GOWORK=off go mod download | |
| cd ../storagetest | |
| go mod download | |
| - name: Verify published module manifests | |
| run: scripts/check-published-modules.sh | |
| - name: Run tests | |
| run: | | |
| go test ./... -v | |
| cd storagetest | |
| go test ./... -v | |
| - name: Verify generated examples compile | |
| run: | | |
| cd examples | |
| GOWORK=off go test ./... -run TestExamplesBuild -count=1 -v | |
| integration: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "stable" | |
| cache: true | |
| cache-dependency-path: | | |
| go.sum | |
| examples/go.sum | |
| integration/go.sum | |
| storagetest/go.sum | |
| driver/*/go.sum | |
| - name: Run integration tests | |
| run: | | |
| cd integration | |
| go test -tags=integration -count=1 -v ./all | |
| coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "stable" | |
| cache: true | |
| cache-dependency-path: | | |
| go.sum | |
| examples/go.sum | |
| integration/go.sum | |
| storagetest/go.sum | |
| driver/*/go.sum | |
| - name: Run combined coverage | |
| run: scripts/coverage-codecov.sh | |
| - name: Upload results to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage.txt | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |