82 Commits

Author SHA1 Message Date
93e1719d0d chore(deps): update postgres docker tag to v16.1 (#52)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| postgres | minor | `16.0-alpine` -> `16.1-alpine` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #52
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-11-24 15:13:48 +00:00
7420139650 feat(ci): additional code/deps/security checks (#37)
To improve `CI` quality the following checks were added:

* compile warnings
* deprecated dependencies
* insecure dependencies
* unused dependencies
* code vulnerabilities

Also, to improve `CI` execution time, dependencies checks and lining were separated from the test pipeline.

Last, but not least, to make local development easier a `Dockerfile` was created to contain any system dependencies, and targets to handle database creation and migration were added.

Reviewed-on: #37
2023-11-11 20:35:45 +00:00
62219ecc9f chore(deps): upgrade locked deps (#50)
After running `mix do deps.unlock --all, deps.clean --all, clean, deps.get` the following dependencies were updated:

```
credo ................... 1.7.0 ... 1.7.1
db_connection ........... 2.5.0 ... 2.6.0
dialyxir ................ 1.4.0 ... 1.4.2
ecto_sql ................ 3.10.1 .. 3.10.2
gettext ................. 0.23.0 .. 0.23.1
phoenix ................. 1.7.9 ... 1.7.10
phoenix_ecto ............ 4.4.2 ... 4.4.3
phoenix_live_dashboard .. 0.8.0 ... 0.8.3
phoenix_live_view ....... 0.19.5 .. 0.20.1
phoenix_view ............ 2.0.2 ... 2.0.3
postgrex ................ 0.17.1 .. 0.17.3
websock_adapter ......... 0.5.4 ... 0.5.5
```

For a detailed diff view check [diff.hex.pm][0].

[0]: https://diff.hex.pm/diffs?diffs[]=credo:1.7.0:1.7.1&diffs[]=db_connection:2.5.0:2.6.0&diffs[]=dialyxir:1.4.0:1.4.2&diffs[]=ecto_sql:3.10.1:3.10.2&diffs[]=gettext:0.23.0:0.23.1&diffs[]=phoenix:1.7.9:1.7.10&diffs[]=phoenix_ecto:4.4.2:4.4.3&diffs[]=phoenix_live_dashboard:0.8.0:0.8.3&diffs[]=phoenix_live_view:0.19.5:0.20.1&diffs[]=phoenix_view:2.0.2:2.0.3&diffs[]=postgrex:0.17.1:0.17.3&diffs[]=websock_adapter:0.5.4:0.5.5

Reviewed-on: #50
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com>
2023-11-11 19:00:26 +00:00
88de0beeac chore(deps): update elixir docker tag to v1.15.7 (#49)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | patch | `1.15.6-slim` -> `1.15.7-slim` |
| elixir |  | patch | `1.15.6-slim` -> `1.15.7-slim` |
| [elixir](https://elixir-lang.org/) ([source](https://github.com/elixir-lang/elixir)) |  | patch | `1.15.6` -> `1.15.7` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #49
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-11-09 21:47:25 +00:00
d7c99b099d chore(deps): update dependency prom_ex to ~> 1.9.0 (#48)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [prom_ex](https://hex.pm/packages/prom_ex) | minor | `~> 1.8.0` -> `~> 1.9.0` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #48
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-10-12 21:47:51 +00:00
e771d55589 chore(deps): update dependency erlang to v26.1.2 (#47)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [erlang](https://github.com/erlang/otp) | patch | `26.1.1` -> `26.1.2` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #47
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-10-12 19:37:57 +00:00
1c0a0b6853 chore(deps): update elixir docker tag to v1.15.6 (#46)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | patch | `1.15.4-slim` -> `1.15.6-slim` |
| elixir |  | patch | `1.15.4-slim` -> `1.15.6-slim` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #46
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-10-06 14:19:13 +00:00
2bd91423a4 chore(deps): update dependency erlang to v26.1.1 (#45)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [erlang](https://github.com/erlang/otp) | patch | `26.1` -> `26.1.1` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #45
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-09-28 11:58:02 +00:00
ba1a8c7baa chore(deps): update dependency elixir to v1.15.6 (#44)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [elixir](https://elixir-lang.org/) ([source](https://github.com/elixir-lang/elixir)) | patch | `1.15.5` -> `1.15.6` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #44
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-09-20 23:05:16 +00:00
5f3a5a1df1 chore(deps): update dependency erlang to v26.1 (#43)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [erlang](https://github.com/erlang/otp) | minor | `26.0.2` -> `26.1` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #43
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-09-20 22:32:32 +00:00
748d7f3381 chore(deps): update postgres docker tag to v16 (#42)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| postgres | docker | major | `15.4-alpine` -> `16.0-alpine` |
| postgres |  | major | `15.4-alpine` -> `16.0-alpine` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #42
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-09-20 22:29:26 +00:00
dc9a7a500b chore(deps): update dependency elixir to v1.15.5 (#41)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [elixir](https://elixir-lang.org/) ([source](https://github.com/elixir-lang/elixir)) | patch | `1.15.4` -> `1.15.5` |

---

### Release Notes

<details>
<summary>elixir-lang/elixir</summary>

### [`v1.15.5`](https://github.com/elixir-lang/elixir/releases/tag/v1.15.5)

[Compare Source](https://github.com/elixir-lang/elixir/compare/v1.15.4...v1.15.5)

##### 1. Enhancements

##### IEx

-   \[IEx.Autocomplete] Speed up loading of struct suggestions

##### 2. Bug fixes

##### Elixir

-   \[Code.Fragment] Fix `Code.Fragment.surround_context/2` for aliases and submodules of non-aliases
-   \[Kernel] Ensure stacktrace is included when necessary when rescuing multiple exceptions in the same branch
-   \[Kernel] Fix index in error message for unused optional arguments

##### ExUnit

-   \[ExUnit.Diff] Fix scenario where diff would not show up due to a timed-out loop

##### IEx

-   \[IEx] Force group leader to run as a binary and unicode in IEx

##### Mix

-   \[mix compile] Do not assume `blake` is always available
-   \[mix format] Load and compile plugins if specified in subdirectories

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #41
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-08-29 18:29:36 +00:00
42f8276204 chore(deps): update dependency dialyxir to ~> 1.4.0 (#40)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dialyxir](https://hex.pm/packages/dialyxir) | minor | `~> 1.3.0` -> `~> 1.4.0` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #40
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-08-28 14:31:16 +00:00
fbba19f4a7 chore(deps): update postgres docker tag to v15.4 (#39)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| postgres | docker | minor | `15.3-alpine` -> `15.4-alpine` |
| postgres |  | minor | `15.3-alpine` -> `15.4-alpine` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #39
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-08-16 13:58:06 +00:00
f8cb4ddfbf chore(deps): update dependency gettext to ~> 0.23.0 (#38)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [gettext](https://hex.pm/packages/gettext) | minor | `~> 0.22.0` -> `~> 0.23.0` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM1LjExNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Reviewed-on: #38
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-08-07 20:21:55 +00:00
2039b43c53 feat: upgrade elixir/erlang runtimes (#35)
Upgrade runtimes to the latest versions:

* elixir to 1.15.4
* erlang to 26.0.2

Improve CI definition by using a cache that considers the runtime version.

Save disk space by using the `slim` image variant.

Co-authored-by: Joao P Dubas <joao.dubas@gmail.com>
Reviewed-on: #35
2023-07-23 23:01:03 +00:00
22b3823d8e chore(deps): update elixir docker tag (#32)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | patch | `1.14.4` -> `1.14.5` |
| elixir |  | patch | `1.14.4` -> `1.14.5` |
| [elixir](https://elixir-lang.org/) ([source](https://github.com/elixir-lang/elixir)) |  | minor | `1.14.4` -> `1.15.0` |

Also upgrade deps listed on [hex.pm/l/vtvfy][0].

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTIuMCIsInVwZGF0ZWRJblZlciI6IjM0LjExMi4wIn0=-->

Co-authored-by: João Paulo Dubas <joao.dubas@noreply.gitea.dubas.dev>
Reviewed-on: #32

[0]: https://diff.hex.pm/diffs?diffs[]=absinthe:1.7.0:1.7.1&diffs[]=credo:1.6.4:1.7.0&diffs[]=dialyxir:1.1.0:1.3.0&diffs[]=ecto_sql:3.7.2:3.10.1&diffs[]=gettext:0.20.0:0.22.2&diffs[]=jason:1.3.0:1.4.0&diffs[]=lcov_ex:0.2.0:0.3.3&diffs[]=phoenix_ecto:4.4.0:4.4.2&diffs[]=phoenix_live_dashboard:0.6.5:0.8.0&diffs[]=prom_ex:1.7.1:1.8.0
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-06-20 03:06:58 +00:00
7befc86adc chore(deps): update meltwater/drone-cache docker tag to v1.4.0 (#29)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [meltwater/drone-cache](https://github.com/meltwater/drone-cache) | docker | minor | `v1.3.0` -> `v1.4.0` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTIuMCIsInVwZGF0ZWRJblZlciI6IjM0LjExMi4wIn0=-->

Reviewed-on: #29
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-06-19 23:48:57 +00:00
39ff0979c7 chore(deps): update postgres docker tag to v15 (#31)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| postgres | docker | major | `14.8-alpine` -> `15.3-alpine` |
| postgres |  | major | `14.8-alpine` -> `15.3-alpine` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTIuMCIsInVwZGF0ZWRJblZlciI6IjM0LjExMi4wIn0=-->

Reviewed-on: #31
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-06-16 11:27:56 +00:00
a30611f310 chore(deps): update postgres docker tag to v14.8 (#30)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| postgres | docker | minor | `14.5-alpine` -> `14.8-alpine` |
| postgres |  | minor | `14.5-alpine` -> `14.8-alpine` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTIuMCIsInVwZGF0ZWRJblZlciI6IjM0LjExMi4wIn0=-->

Reviewed-on: #30
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-06-14 22:51:56 +00:00
686b23bc8e chore(deps): update elixir docker tag to v1.14.4 (#24)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | patch | `1.14.3` -> `1.14.4` |
| elixir |  | patch | `1.14.3` -> `1.14.4` |
| [elixir](https://elixir-lang.org/) ([source](https://github.com/elixir-lang/elixir)) |  | patch | `1.14.3` -> `1.14.4` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTIuMCIsInVwZGF0ZWRJblZlciI6IjM0LjExMi4wIn0=-->

Reviewed-on: #24
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-04-16 22:56:12 +00:00
5dc3af3463 chore(deps): update elixir docker tag to v1.14.3 (#23)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | patch | `1.14.0` -> `1.14.3` |
| elixir |  | patch | `1.14.0` -> `1.14.3` |
| [elixir](https://elixir-lang.org/) ([source](https://github.com/elixir-lang/elixir)) |  | minor | `1.13.4-otp-24` -> `1.14.3` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTIuMCIsInVwZGF0ZWRJblZlciI6IjM0LjExMi4wIn0=-->

Reviewed-on: #23
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-02-27 03:25:24 +00:00
10fa65a894 chore(deps): update dependency erlang to v24.3.4 (#22)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [erlang](https://github.com/erlang/otp) | patch | `24.3.3` -> `24.3.4` |

---

### Release Notes

<details>
<summary>erlang/otp</summary>

### [`v24.3.4`](https://github.com/erlang/otp/releases/tag/OTP-24.3.4): OTP 24.3.4

[Compare Source](https://github.com/erlang/otp/compare/OTP-24.3.3...OTP-24.3.4)

</details>

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTIuMCIsInVwZGF0ZWRJblZlciI6IjM0LjExMi4wIn0=-->

Reviewed-on: #22
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-02-27 02:08:33 +00:00
ea530b4775 chore(deps): update elixir docker tag to v1.14.0 (#21)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| elixir | docker | minor | `1.13.4` -> `1.14.0` |
| elixir |  | minor | `1.13.4` -> `1.14.0` |

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xNzkuMCIsInVwZGF0ZWRJblZlciI6IjMyLjE3OS4wIn0=-->

Reviewed-on: #21
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-02-27 01:23:50 +00:00
fc08e32e1a chore(deps): update postgres docker tag to v14.5 (#20)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| postgres | docker | minor | `14.4-alpine` -> `14.5-alpine` |
| postgres |  | minor | `14.4-alpine` -> `14.5-alpine` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMjcuMSIsInVwZGF0ZWRJblZlciI6IjMyLjE3OS4wIn0=-->

Reviewed-on: #20
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2023-01-24 01:55:12 +00:00
6492aa4e0b chore(deps): update dependency gettext to ~> 0.20 (#19)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [gettext](https://hex.pm/packages/gettext) | minor | `~> 0.19` -> `~> 0.20` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMjcuMSIsInVwZGF0ZWRJblZlciI6IjMyLjEyNy4xIn0=-->

Reviewed-on: #19
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2022-08-27 21:53:13 +00:00
c463839411 chore(deps): update dependency postgres to v14.4 (#18)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| postgres | docker | minor | `14.3-alpine` -> `14.4-alpine` |
| postgres |  | minor | `14.3-alpine` -> `14.4-alpine` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #18
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2022-07-01 13:22:26 +00:00
7559f3dc71 chore(deps): update dependency postgres to v14.3 (#17)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| postgres | docker | minor | `14.2-alpine` -> `14.3-alpine` |
| postgres |  | minor | `14.2-alpine` -> `14.3-alpine` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #17
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2022-06-09 11:39:26 +00:00
34c3a3e4c2 feat: expose system metrics (#4)
Use prom_ex to expose system metrics to prometheus and create dashboards.

Co-authored-by: Joao P Dubas <joao.dubas@gmail.com>
Reviewed-on: #4
2022-05-03 16:19:39 +00:00
39419f8837 feat (ci): improve configuration (#16)
- Remove unused `github-actions` configuration
- Cache build and deps to make tests faster
- Add lint step

Reviewed-on: #16
2022-04-26 00:01:43 +00:00
166cfed7b3 chore(deps): update dependency telemetry_metrics to ~> 0.6 (#12)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [telemetry_metrics](https://hex.pm/packages/telemetry_metrics) | minor | `~> 0.4` -> `~> 0.6` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #12
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2022-04-25 13:42:42 +00:00
0dc3d6f6c7 chore(deps): update dependency phoenix_live_dashboard to ~> 0.6 (#11)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [phoenix_live_dashboard](https://hex.pm/packages/phoenix_live_dashboard) | minor | `~> 0.4` -> `~> 0.6` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #11
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2022-04-25 13:31:13 +00:00
e09f789bb0 chore(deps): update dependency gettext to ~> 0.19 (#9)
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [gettext](https://hex.pm/packages/gettext) | minor | `~> 0.11` -> `~> 0.19` |

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #9
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2022-04-25 13:24:44 +00:00
423b26db4c feat: enable renovate (#7)
All checks were successful
continuous-integration/drone/push Build is passing
Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

---
### Detected Package Files

 * `docker-compose.yml` (docker-compose)
 * `.drone.yml` (droneci)
 * `.github/workflows/ci.yml` (github-actions)
 * `mix.exs` (mix)

### Configuration Summary

Based on the default config's presets, Renovate will:

  - Start dependency updates only once this onboarding PR is merged
  - Enable Renovate Dependency Dashboard creation
  - If semantic commits detected, use semantic commit type <code>fix</code> for dependencies and <code>chore</code> for all others
  - Ignore `node_modules`, `bower_components`, `vendor` and various test/tests directories
  - Autodetect whether to pin dependencies or maintain ranges
  - Rate limit PR creation to a maximum of two per hour
  - Limit to maximum 10 open PRs at any time
  - Group known monorepo packages together
  - Use curated list of recommended non-monorepo package groupings
  - Fix some problems with very old Maven commons versions
  - Ignore spring cloud 1.x releases
  - Ignore web3j 5.0.0 release
  - Ignore http4s digest-based 1.x milestones
  - Use node versioning for @types/node
  - Limit concurrent requests to reduce load on Repology servers until we can fix this properly, see issue 10133
  - Do not upgrade from Alpine stable to edge

🔡 Would you like to change the way Renovate is upgrading your dependencies? Simply edit the `renovate.json` in this branch with your custom config and the list of Pull Requests in the "What to Expect" section below will be updated the next time Renovate runs.

---

### What to Expect

With your current configuration, Renovate will create 7 Pull Requests:

<details>
<summary>chore(deps): update styfle/cancel-workflow-action action to v0.9.1</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/styfle-cancel-workflow-action-0.x`
  - Merge into: `main`
  - Upgrade [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action) to `0.9.1`

</details>

<details>
<summary>chore(deps): update dependency gettext to ~> 0.19</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/gettext-0.x`
  - Merge into: `main`
  - Upgrade gettext to `~> 0.19`

</details>

<details>
<summary>chore(deps): update dependency phoenix_live_dashboard to ~> 0.6</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/phoenix_live_dashboard-0.x`
  - Merge into: `main`
  - Upgrade phoenix_live_dashboard to `~> 0.6`

</details>

<details>
<summary>chore(deps): update dependency telemetry_metrics to ~> 0.6</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/telemetry_metrics-0.x`
  - Merge into: `main`
  - Upgrade telemetry_metrics to `~> 0.6`

</details>

<details>
<summary>chore(deps): update romeovs/lcov-reporter-action action to v0.3.1</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/romeovs-lcov-reporter-action-0.x`
  - Merge into: `main`
  - Upgrade [romeovs/lcov-reporter-action](https://github.com/romeovs/lcov-reporter-action) to `v0.3.1`

</details>

<details>
<summary>chore(deps): update actions/cache action to v3</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/actions-cache-3.x`
  - Merge into: `main`
  - Upgrade [actions/cache](https://github.com/actions/cache) to `v3`

</details>

<details>
<summary>chore(deps): update actions/checkout action to v3</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/actions-checkout-3.x`
  - Merge into: `main`
  - Upgrade [actions/checkout](https://github.com/actions/checkout) to `v3`

</details>

<br />

🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or spam the project. See docs for `prhourlylimit` for details.

---

 Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section.
If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions).

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #7
Co-authored-by: renovate-bot <renovate-bot@dubas.dev>
Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
2022-04-23 23:29:35 +00:00
e7df0322d7 Improve project usage (#6)
All checks were successful
continuous-integration/drone/push Build is passing
1. Ignore unnecessary files, such as `pgcli` log/history, and extra `docker-compose` definitions.
2. Add `Makefile` with common tasks.
3. Add git pre-commit hook to ensure project is always properly formatted.
4. Add [`btree_gist`][0] extension to `postgres`.

Reviewed-on: #6

[0]: https://www.postgresql.org/docs/14/btree-gist.html
2022-04-23 17:15:16 +00:00
b7200555a8 feat: upgrade runtime and system dependencies (#5)
* Upgrade elixir, erlang, and postgres to their latest versions.
* Fix CI configuration, so tests are executed.
* Migrate project configuration from `Mix.Config` to `Config`.

Reviewed-on: #5
2022-04-22 15:21:25 +00:00
410a509faa chore: apply credo suggestions (#3)
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Mainly add module docs and fix some aliases.
2022-04-22 00:49:00 +00:00
49bafee50c chore: upgrade all deps (#2)
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Upgrade dependencies to their latest versions.
2022-04-21 23:29:43 +00:00
Joao P Dubas
087cfbc44a [extra-02] configure drone ci/cd
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2021-07-22 02:05:29 +00:00
Joao P Dubas
7d6a0dedf9 [extra-02] add credo action to review prs 2021-07-07 01:27:46 +00:00
Joao P Dubas
7075efb18b [extra-02] publish coverage report 2021-07-07 01:00:05 +00:00
Joao P Dubas
585ffc122e [extra-02] enable coverage tool
Even though ExCoveralls is the common library for coverage report in
elixir, we will use LcovEx because it generates lcov compatible reports
that can be used with some interesting actions in github.
2021-07-07 00:41:20 +00:00
Joao P Dubas
81628da009 [extra-02] publish test results 2021-07-06 01:23:56 +00:00
Joao P Dubas
cd2f062ef5 [extra-02] install and configure junit formatter
With this change it's possible to generate test report that can be used
alongside continuous integration routine.
2021-07-06 01:12:25 +00:00
Joao P Dubas
0614dfd608 [extra-02] check code quality and test in ci
Configure github actions to execute:
1. Code analysis with format/credo/dialyzer
2. Test with code coverage
2021-07-04 21:20:10 +00:00
Joao P Dubas
9888eebd58 [extra-02] access db using env vars
To make easier to run the app locally with docker and in CI, the
configurations were adjusted to read the database access from
environment variables:

1. POSTGRES_USER
2. POSTGRES_PASS
3. POSTGRES_HOST
2021-06-28 13:55:55 +00:00
Joao P Dubas
e493aead51 [extra-02] add code analysis deps
Add credo and dialyxr to check code analysis/quality.
2021-06-28 13:55:55 +00:00
Joao P Dubas
f07965afa4 [extra-01] use date_range to represent training period
Adjust graphql training object and input to use date_range type as a
representation for period field.
2021-06-28 13:55:55 +00:00
Joao P Dubas
24a2c516c5 [extra-01] add custom date range graphql type
This type allow graphql to work natively with postgres date range and
reduce the amount of work to convert between representations.
2021-06-28 13:55:37 +00:00
Joao P Dubas
1597d34a2d [extra-01] adjust training query to filter by period 2021-06-28 00:31:44 +00:00