1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2026-04-24 19:54:26 +02:00
Commit Graph

99 Commits

Author SHA1 Message Date
Vasiliy Vasilyuk 0ed7f930cd Bump go from 1.24.2 to 1.26.1 2026-03-24 19:20:43 +03:00
dependabot[bot] 31da483c86 Bump github.com/jackc/pgx/v5 from 5.7.6 to 5.8.0
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.6 to 5.8.0.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.6...v5.8.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-29 23:08:48 +00:00
dependabot[bot] a1dd11b3ea Bump migrate/migrate from v4.19.0 to v4.19.1
Bumps migrate/migrate from v4.19.0 to v4.19.1.

---
updated-dependencies:
- dependency-name: migrate/migrate
  dependency-version: v4.19.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-02 02:20:19 +00:00
dependabot[bot] dae0736745 Bump github.com/golang-migrate/migrate/v4 from 4.19.0 to 4.19.1
Bumps [github.com/golang-migrate/migrate/v4](https://github.com/golang-migrate/migrate) from 4.19.0 to 4.19.1.
- [Release notes](https://github.com/golang-migrate/migrate/releases)
- [Commits](https://github.com/golang-migrate/migrate/compare/v4.19.0...v4.19.1)

---
updated-dependencies:
- dependency-name: github.com/golang-migrate/migrate/v4
  dependency-version: 4.19.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-02 01:18:54 +00:00
dependabot[bot] b3532865dd Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 23:29:23 +00:00
dependabot[bot] 2d32547de9 Bump golangci/golangci-lint-action from 8 to 9
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 8 to 9.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v8...v9)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 23:10:09 +00:00
dependabot[bot] ae78cb0edd Bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-11 22:15:48 +00:00
dependabot[bot] fdcf5eaa08 Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.5 to 5.7.6.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.5...v5.7.6)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.7.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 23:09:12 +00:00
dependabot[bot] 3ae39d7992 Bump migrate/migrate from v4.18.3 to v4.19.0
Bumps migrate/migrate from v4.18.3 to v4.19.0.

---
updated-dependencies:
- dependency-name: migrate/migrate
  dependency-version: v4.19.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-03 14:12:13 +00:00
dependabot[bot] 40a0a229d4 Bump github.com/stretchr/testify from 1.11.0 to 1.11.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-02 16:54:04 +00:00
dependabot[bot] eac3a678aa Bump github.com/golang-migrate/migrate/v4 from 4.18.3 to 4.19.0
Bumps [github.com/golang-migrate/migrate/v4](https://github.com/golang-migrate/migrate) from 4.18.3 to 4.19.0.
- [Release notes](https://github.com/golang-migrate/migrate/releases)
- [Changelog](https://github.com/golang-migrate/migrate/blob/master/.goreleaser.yml)
- [Commits](https://github.com/golang-migrate/migrate/compare/v4.18.3...v4.19.0)

---
updated-dependencies:
- dependency-name: github.com/golang-migrate/migrate/v4
  dependency-version: 4.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-02 15:52:44 +00:00
dependabot[bot] 85f51b2e11 Bump github.com/stretchr/testify from 1.10.0 to 1.11.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-26 18:32:27 +00:00
dependabot[bot] 5f0af350bf Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 07:35:34 +00:00
dependabot[bot] bfcc973019 Bump github.com/jackc/pgx/v5 from 5.7.4 to 5.7.5
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.4 to 5.7.5.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.4...v5.7.5)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.7.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 23:32:52 +00:00
Vasiliy Vasilyuk fe75ca83b5 Update README.md 2025-05-13 18:45:05 +04:00
dependabot[bot] 59ed471d81 Bump golangci/golangci-lint-action from 7 to 8
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 7 to 8.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v7...v8)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-06 00:42:31 +00:00
Vasiliy Vasilyuk b3c059a0b5 Bump golangci-lint from 2.0.2 to 2.1.5 2025-05-03 09:40:38 +04:00
Vasiliy Vasilyuk d4098e3b30 Update formatters in .golangci.yml 2025-05-03 09:36:47 +04:00
dependabot[bot] c36c867614 Bump github.com/golang-migrate/migrate/v4 from 4.18.2 to 4.18.3
Bumps [github.com/golang-migrate/migrate/v4](https://github.com/golang-migrate/migrate) from 4.18.2 to 4.18.3.
- [Release notes](https://github.com/golang-migrate/migrate/releases)
- [Changelog](https://github.com/golang-migrate/migrate/blob/master/.goreleaser.yml)
- [Commits](https://github.com/golang-migrate/migrate/compare/v4.18.2...v4.18.3)

---
updated-dependencies:
- dependency-name: github.com/golang-migrate/migrate/v4
  dependency-version: 4.18.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-30 07:46:39 +00:00
dependabot[bot] 115c13e9c5 Bump postgres from 15.3-alpine3.18 to 16.3-alpine3.18
Bumps postgres from 15.3-alpine3.18 to 16.3-alpine3.18.

---
updated-dependencies:
- dependency-name: postgres
  dependency-version: 16.3-alpine3.18
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-30 07:44:14 +00:00
dependabot[bot] 8cc89ce6dd Bump migrate/migrate from v4.16.2 to v4.18.3
Bumps migrate/migrate from v4.16.2 to v4.18.3.

---
updated-dependencies:
- dependency-name: migrate/migrate
  dependency-version: v4.18.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-30 07:41:58 +00:00
Vasiliy Vasilyuk 7354453da9 Update dependabot.yml 2025-04-30 10:40:08 +03:00
Vasiliy Vasilyuk d0e4af0d80 Bump go from 1.22.0 to 1.24.2 2025-04-30 10:37:51 +03:00
dependabot[bot] ca2c3c4433 Bump github.com/jackc/pgx/v5 from 5.7.3 to 5.7.4
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.3 to 5.7.4.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.3...v5.7.4)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-version: 5.7.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-05 08:45:51 +00:00
Vasiliy Vasilyuk c3496db60e Bump golangci/golangci-lint-action from 6 to 7
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-05 08:41:53 +00:00
dependabot[bot] 2e8f4ee018 Bump github.com/jackc/pgx/v5 from 5.7.2 to 5.7.3
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.2 to 5.7.3.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.2...v5.7.3)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-25 01:44:42 +00:00
dependabot[bot] d0546ed144 Bump github.com/golang-migrate/migrate/v4 from 4.18.1 to 4.18.2
Bumps [github.com/golang-migrate/migrate/v4](https://github.com/golang-migrate/migrate) from 4.18.1 to 4.18.2.
- [Release notes](https://github.com/golang-migrate/migrate/releases)
- [Changelog](https://github.com/golang-migrate/migrate/blob/master/.goreleaser.yml)
- [Commits](https://github.com/golang-migrate/migrate/compare/v4.18.1...v4.18.2)

---
updated-dependencies:
- dependency-name: github.com/golang-migrate/migrate/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 23:50:21 +00:00
Vasiliy Vasilyuk 20e8da2668 Update go.yml
Signed-off-by: Vasiliy Vasilyuk <xorcare@gmail.com>
2025-01-03 23:03:21 +03:00
Vasiliy Vasilyuk b7ca94a779 Update dependabot-auto-merge.yml
Signed-off-by: Vasiliy Vasilyuk <xorcare@gmail.com>
2025-01-03 22:02:50 +03:00
Vasiliy Vasilyuk a6c7a238ed Update dependabot-auto-merge.yml
Using single quotes is safer compared to double quotes.

Signed-off-by: Vasiliy Vasilyuk <xorcare@gmail.com>
2025-01-02 11:28:40 +03:00
Vasiliy Vasilyuk 28a36d13d1 Add auto-merge for Dependabot PRs
This will make it easier to maintain the repository. Since this is a
demo project, it is enough to pass CI to update the dependency.

Do not mindlessly copy this approach to projects on which other
projects depend.
2024-12-31 10:34:04 +03:00
dependabot[bot] 13126f2003 Bump github.com/jackc/pgx/v5 from 5.7.1 to 5.7.2
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.1 to 5.7.2.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-29 09:20:32 +03:00
dependabot[bot] f740dee6ec Bump github.com/stretchr/testify from 1.9.0 to 1.10.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 23:51:49 +00:00
dependabot[bot] 6ee7987fc9 Bump codecov/codecov-action from 4 to 5
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 23:46:23 +00:00
Vasiliy Vasilyuk a2d02fb915 Fix linter issues and simplify yaml files 2024-10-06 16:45:19 +03:00
Vasiliy Vasilyuk b7eb482b87 Add linter 'gofumpt' 2024-10-06 16:11:54 +03:00
Vasiliy Vasilyuk 3bb9df005e Add timeout for jobs in .gitlab-ci.yml 2024-10-03 22:23:31 +03:00
dependabot[bot] 6d5bcd13ad Bump github.com/jackc/pgx/v5 from 5.7.0 to 5.7.1
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.7.0 to 5.7.1.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.7.0...v5.7.1)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-17 08:14:39 +03:00
Vasiliy Vasilyuk 1e275839f4 Remove GitHub Workflow for mirroring to Gitlab
There was an advent recently, the Pipelines in Gitlab took a very long
time to execute, and used up my entire quota of free runners. At first
I thought of just adding timeouts, but then I thought there might be
better approaches to integrating with Gitlab.

So I'm removing the Gitlab integration for now, maybe in the future
when quotas are restored I'll set up a more convenient and thoughtful
integration again.
2024-09-14 14:57:29 +03:00
dependabot[bot] 1023c345c2 Bump github.com/golang-migrate/migrate/v4 from 4.17.1 to 4.18.1
Bumps [github.com/golang-migrate/migrate/v4](https://github.com/golang-migrate/migrate) from 4.17.1 to 4.18.1.
- [Release notes](https://github.com/golang-migrate/migrate/releases)
- [Changelog](https://github.com/golang-migrate/migrate/blob/master/.goreleaser.yml)
- [Commits](https://github.com/golang-migrate/migrate/compare/v4.17.1...v4.18.1)

---
updated-dependencies:
- dependency-name: github.com/golang-migrate/migrate/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 18:30:15 +03:00
dependabot[bot] d447f3940d Bump github.com/jackc/pgx/v5 from 5.6.0 to 5.7.0
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.6.0 to 5.7.0.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.6.0...v5.7.0)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 18:27:29 +03:00
Vasiliy Vasilyuk 4d793253e8 Remove trigger of Gitlab sync for merge requests
Duplicate triggers cause problems, so only the push trigger is left.
2024-07-01 22:55:45 +03:00
Vasiliy Vasilyuk 593bc9715c Add example of tests with isolated schema 2024-07-01 21:02:04 +03:00
Vasiliy Vasilyuk 05d30f6c09 Add example of tests with transactional cleanup 2024-07-01 21:02:04 +03:00
Vasiliy Vasilyuk 13e3596692 Rename function for isolated database connection
Other ways to clean the database in tests will be added soon, so the
tests are being moved to a separate file.
2024-07-01 21:02:04 +03:00
Vasiliy Vasilyuk 83b2f61e41 Add interface do DB driver to repository
This abstraction is needed to add transactional cleanup in the future.
2024-07-01 21:02:04 +03:00
Vasiliy Vasilyuk 912e9c9ab0 Migrate to sql.DB driver
This is to reduce dependency on a particular driver. In the future this
will be used to implement different ways of cleaning the database.
2024-07-01 21:02:04 +03:00
Vasiliy Vasilyuk 883c9e0805 Add cleanup and format go.mod and go.sum to target 'check' 2024-07-01 21:02:04 +03:00
Vasiliy Vasilyuk bfd3d587d9 Add '.PHONY' label for 'tools' target 2024-07-01 21:02:04 +03:00
Vasiliy Vasilyuk ca16e02007 Enable linter 'wsl'
This is a highly controversial linter, but it generally has a positive
effect on code readability.
2024-06-30 22:41:56 +03:00