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

78 Commits

Author SHA1 Message Date
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
742aa107ed Bump github.com/jackc/pgx/v5 from 5.5.2 to 5.5.3
Bumps [github.com/jackc/pgx/v5](https://github.com/jackc/pgx) from 5.5.2 to 5.5.3.
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v5.5.2...v5.5.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>
2024-02-06 22:22:20 +00:00
4ff06a8f9c Bump actions/setup-go from 4 to 5
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-06 22:19:39 +00:00
a6799aa01b Bump codecov/codecov-action from 3 to 4
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [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/v3...v4)

---
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-02-06 21:17:49 +00:00
9d545d0bad Update go.yml
Updated the Go version to bring it up to date and cleaned up
unnecessary parameters.

Added the ability to manually run workflow, as it is very handy.
2024-02-07 00:15:48 +03:00
9300bb3bf8 Add dependabot config for github-actions
This is to automate the updating of CI components, and remember to keep
CI up to date on a regular basis.
2024-02-07 00:12:29 +03:00
c4aab04f0b Make Gitlab mirroring great again
The https mirroring is broken for some reason. Since I don't need to
manually start CI anymore, I made mirroring via SSH.
2024-02-07 00:04:22 +03:00
82f4ebc0f9 Add dependabot configuration
For monitoring vulnerabilities in dependencies used in project and keep
dependencies up-to-date with Dependabot.

And also to remember to keep the repository up to date.
2024-01-27 16:01:50 +03:00
536cbe330b Bump github.com/jackc/pgx/v5 to v5.5.2 2024-01-27 00:21:02 +03:00