diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..a1c4107 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,28 @@ +# Atualizações automáticas de dependências. Uma vez por mês, no máximo um +# PR para as dependências npm e um para as actions da CI. Os PRs seguem o +# fluxo normal: CI e merge manual. +version: 2 +updates: + - package-ecosystem: npm + directory: / + schedule: + interval: monthly + groups: + dependencias-npm: + patterns: ["*"] + ignore: + # A versão major do embedded-postgres acompanha a do Postgres (16.x + # roda o PostgreSQL 16). A validação local precisa ficar na mesma + # versão do postgres:16 do docker-compose.yml, então trocar de + # versão do Postgres é decisão manual, nos dois lugares ao mesmo + # tempo. Atualizações dentro da linha 16 continuam permitidas. + - dependency-name: embedded-postgres + update-types: ["version-update:semver-major"] + + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + groups: + actions: + patterns: ["*"] diff --git a/README.en.md b/README.en.md index df52b5f..0649a05 100644 --- a/README.en.md +++ b/README.en.md @@ -168,6 +168,8 @@ On every push to `main` and on every pull request, GitHub Actions runs two jobs The result of each check shows up as a table in the run summary, in the **Actions** tab on GitHub, with no need to open the logs. +Dependencies are kept up to date by **Dependabot** ([`.github/dependabot.yml`](.github/dependabot.yml)): once a month, it opens at most one PR for the npm dependencies and one for the CI actions, and both go through the same CI. Major versions of `embedded-postgres` are excluded, because they set the Postgres version of the local validation, which must stay the same as the one used with Docker. + --- ## The 5 investigated defects diff --git a/README.md b/README.md index b417c3f..5236d05 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,8 @@ A cada push na `main` e a cada pull request, o GitHub Actions roda dois jobs em O resultado de cada conferência aparece numa tabela no resumo da execução, na aba **Actions** do GitHub, sem precisar abrir os logs. +As dependências são mantidas pelo **Dependabot** ([`.github/dependabot.yml`](.github/dependabot.yml)): uma vez por mês, ele abre no máximo um PR para as dependências npm e um para as actions da CI, que passam pela mesma CI. A versão major do `embedded-postgres` fica de fora, porque ela define a versão do Postgres da validação local, que precisa continuar igual à do Docker. + --- ## Os 5 defeitos investigados