Bump github.com/jackc/pgx/v5 from 5.7.6 to 5.9.2 in the go_modules group across 1 directory #28
Workflow file for this run
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: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Cache Go modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Install tools | |
| run: | | |
| go install github.com/pressly/goose/v3/cmd/goose@latest | |
| go install github.com/swaggo/swag/cmd/swag@latest | |
| - name: Tidy | |
| run: go mod tidy | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.11.0 | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: go test -v -race -coverprofile=coverage.out ./... | |
| - name: Upload coverage reports to Codecov | |
| if: always() && hashFiles('coverage.out') != '' | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage.out | |
| fail_ci_if_error: false |