1
0
mirror of https://github.com/xorcare/testing-go-code-with-postgres.git synced 2025-06-30 23:23:40 +02:00

86 Commits

Author SHA1 Message Date
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
fe75ca83b5 Update README.md 2025-05-13 18:45:05 +04:00
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
b3c059a0b5 Bump golangci-lint from 2.0.2 to 2.1.5 2025-05-03 09:40:38 +04:00
d4098e3b30 Update formatters in .golangci.yml 2025-05-03 09:36:47 +04:00
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
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
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
7354453da9 Update dependabot.yml 2025-04-30 10:40:08 +03:00
d0e4af0d80 Bump go from 1.22.0 to 1.24.2 2025-04-30 10:37:51 +03:00
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
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
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
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
20e8da2668 Update go.yml
Signed-off-by: Vasiliy Vasilyuk <xorcare@gmail.com>
2025-01-03 23:03:21 +03:00
b7ca94a779 Update dependabot-auto-merge.yml
Signed-off-by: Vasiliy Vasilyuk <xorcare@gmail.com>
2025-01-03 22:02:50 +03:00
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
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
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
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
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
a2d02fb915 Fix linter issues and simplify yaml files 2024-10-06 16:45:19 +03:00
b7eb482b87 Add linter 'gofumpt' 2024-10-06 16:11:54 +03:00
3bb9df005e Add timeout for jobs in .gitlab-ci.yml 2024-10-03 22:23:31 +03:00
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
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
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
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
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
593bc9715c Add example of tests with isolated schema 2024-07-01 21:02:04 +03:00
05d30f6c09 Add example of tests with transactional cleanup 2024-07-01 21:02:04 +03:00
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
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
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
883c9e0805 Add cleanup and format go.mod and go.sum to target 'check' 2024-07-01 21:02:04 +03:00
bfd3d587d9 Add '.PHONY' label for 'tools' target 2024-07-01 21:02:04 +03:00
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
4544829f9b Configure linter 'goimports' 2024-06-30 22:41:56 +03:00
4ccac3351d Configure linter 'unused'
These settings allow you to find more unused code.
2024-06-30 22:41:44 +03:00
e9faf17bba Bump github.com/jackc/pgx/v5 from 5.5.5 to 5.6.0
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.5 to 5.6.0.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.5...v5.6.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-05-29 07:05:09 +03:00
1dfd46ede5 Bump golangci/golangci-lint-action from 5 to 6
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 5 to 6.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v5...v6)

---
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>
2024-05-14 19:06:16 +03:00
feac4da676 Bump golangci/golangci-lint-action from 4 to 5
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5)

---
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>
2024-05-01 11:26:32 +03:00
60060cb558 Bump github.com/jackc/pgx/v5 from 5.5.4 to 5.5.5
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.4 to 5.5.5.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.4...v5.5.5)

---
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-03-14 19:32:46 +03:00
2d6f8b6c3f Bump github.com/stretchr/testify from 1.8.4 to 1.9.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.4 to 1.9.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.4...v1.9.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-03-05 18:10:40 +00:00
7325c3ebd9 Bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.3 to 5.5.4.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.3...v5.5.4)

---
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-03-04 23:26:11 +00:00
6e76b3e31e Bump golangci/golangci-lint-action from 3 to 4
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v4)

---
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>
2024-02-11 20:56:38 +03:00
66d4c714c4 Update .editorconfig and reformat code
The settings for yaml files regularly get confused and I don't like it,
so I add them to .editorconfig to make the settings always the same.
2024-02-11 20:50:44 +03:00
47add2b272 Bump go from 1.20 to 1.22.0 in .gitlab-ci.yml 2024-02-08 22:44:02 +03:00
5514fbebff Add check actuality of go.mod and go.sum 2024-02-08 22:41:32 +03:00
c0e268facd Bump go from 1.20 to 1.22.0 2024-02-08 22:27:46 +03:00