Commit Graph
336 Commits
Author SHA1 Message Date
JakobLichterfeldandscottbot95 fdf8185ce2 ci: add treefmt as code formatting multiplexer, refactor CI to avoid duplication, reorg CI into DevOps workflow (#4219)
* ci: add treefmt as code formatting multiplexer

* style: linter findings in entrypoint.sh script

* style: linter findings for yaml and yml

* style: linter findings for json files

* style: linter findings for nix files

* style: linter findings for js files

* style: linter findings for dashboards.sh

* style: linter findings for md and mdx files

* chore: remove unused clang formatter in treefmt config

* style: linter findings for mdx files

* ci: exclude Grafana dashboard JSON files from prettier formatting

* Revert "style: linter findings for json files"

This reverts commit f40c2e1759.

* ci: exclude Grafana dashboard JSON files from all formatting as we use the grafana export style

* style: linter findings for json files

* doc: update changelog

* ci(refactor): use composite action to avoid duplication in elixir workflow

* doc: update changelog

* ci: prevent workflow runs for certain conditions and allow scheduled runs

* ci(refactor): use reusable workflow to check paths

* ci(fix): correct output syntax for check_paths workflow and setting base branch

* ci(refactor): use reusable workflows for streamlined DevOps pipeline

* ci(fix): add write permission for packages in DevOps workflow

* ci(test): test DevOps workflow

* ci(test): test DevOps workflow

* ci(fix): Update condition for spell_check, ensure_linting, elixir, and ghcr_build workflows to reflect empty result instead of false

* ci: revert test DevOps

* ci(refactor): allow ghcr_build parallel to elixir test

* ci(refactor): Remove redundant check_paths job from elixir.yml, elixir_test.yml, and spell_check.yml workflows, check is done in devops.yml

* feat: add treefmt-nix to nix flake (#4219 - @JakobLichterfeld)

* ci: ensure proper linting via treefmt

* ci(test): test ensure_linting workflow

* ci(fix): checkout code for spell_checker to access file to check

* ci(fix): allow impure in ensure_linting workflow

* Revert "ci(test): test ensure_linting workflow"

This reverts commit a67b17ec09.

* ci(fix): correct use of flake-utils for formatter and checks

Co-authored-by: scottbot95 <scottbot95@gmail.com>

* ci(fix): correct use of flake-utils for treefmt

Co-authored-by: scottbot95 <scottbot95@gmail.com>

* refactor: Remove unnecessary imports in flake

* ci(fix): correct syntax in flake

* ci(refactor): Remove unused code in flake.nix

* style: standardised style for input url in flake

* ci(fix): treefmt-nix config with existing options

* ci(feat): Add Nix binary cache and update treefmt command in CI workflow

* ci(refactor): Remove unused code in flake.nix

* fix: include devShell packages only on supported platforms

* fix: update hash for mix-deps package in flake.nix

* ci(fix): Update treefmt command in CI workflow

* ci(test): test ensure_linting workflow

* feat: ensure mix deps are present in devShell

* ci(feat): use flake-parts to enable treefmt-nix

* feat: use flake-parts

* fix: correct use of flake-parts for package build

* doc: update CI badge URL for devops workflow

* ci(fix): handle empty path filter output

* ci: remove --impure flag from treefmt command in CI workflow

* fix: correct treefmt.config settings in formatter.nix

* fix: correct flake-parts inputs, avoid with in imports

* fix: correct program name for mix-format in formatter.nix

* feat: devenv via flake-parts

* fix: correct use of legacy nix code with flake-parts

* ci(fix): correct nix develop command in ensure_linting.yml

* refactor: list imports explicitly in flake, rename folder to flake-modules to be precise

* style: use tabs for indent size to format sh

* style: use nixfmt-rfc-style

* Revert "style: use nixfmt-rfc-style"

This reverts commit 082056159e.

* style: use nixfmt style

* fix: remove glibcLocales from optional dependencies to avoid  "A definition for option `packages."[definition 4-entry 16]"' is not of type `package'."

* fix: remove inotify-tools from optional dependencies to avoid  "A definition for option `packages."[definition 4-entry 16]"' is not of type `package'."

* fix: Remove inotify-tools and glibcLocales from optional dependencie

* fix: correct file paths in flake.nix to version

* fix: add ELIXIR_ERL_OPTIONS to shell environment to force utf8 locale

* fix: add LOCALE_ARCHIVE to shell environment in flake.nix

* Revert "fix: add LOCALE_ARCHIVE to shell environment in flake.nix"

This reverts commit d45f6e32ee.

* ci(refactor): rename workflow to elixir_dep_verification_and_static_analysis.yml to better reflect the intention,, remove duplicate checks

* ci(debug): debug locale settings

* Revert "ci(debug): debug locale settings"

This reverts commit 9b402f3c5f.

* Revert "fix: add ELIXIR_ERL_OPTIONS to shell environment to force utf8 locale"

This reverts commit d02419cba4.

* fix: add LOCALE_ARCHIVE to shell environment in flake.nix

* Revert "fix: add LOCALE_ARCHIVE to shell environment in flake.nix"

This reverts commit 761b437e69.

* fix: add LANG=C.UTF-8 to shell environment in flake.nix

* fix: add mix local.rebar and mix local.hex commands to flake.nix

* fix: pin devenv to version without unix socket bug

* chore: update nixpkgs to nixos-24.05 and update dependencies

* doc: add treefmt config comments

* ci: do not expose treefmt formatter programs in devshell

* fix: correct use of module option to enable PostgreSQL server in flake.nix

* Revert "chore: update nixpkgs to nixos-24.05 and update dependencies"

This reverts commit a6ea3f25aa.

* feat: consistent use of erlang 26 and elixir 1_16 in flake

* ci: switch to macOS runner for linting workflow

* Revert "ci: do not expose treefmt formatter programs in devshell"

This reverts commit 1ecfa451dc.

* Revert "ci: switch to macOS runner for linting workflow"

This reverts commit 7b430667d8.

* ci: Remove nixpkgs channel specification in ensure_linting workflow

* ci(debug): Add debug output for PATH and NIX_PATH in flake.nix

* Revert "ci(debug): Add debug output for PATH and NIX_PATH in flake.nix"

This reverts commit 07faec5ddf.

* fix: avoid the need for impure for devenv

see #4245

* fix: remove invalid custom build.check for formatter and use default

* style: linter findings

* fix: Add emptyTest to avoid nix flake check test execution on non-Linux systems

* chore: Remove LANG=C.UTF-8 from enterShell in flake.nix

* ci(fix): Remove --impure flag from treefmt command in CI mode

* ci(fix): avoid impure mode in ensure_linting workflow

* style: linter findings

* ci(debug): debug elixir version and locale

* chore: Update flake.lock dependencies

* feat: use newer devenv as unix socket bug is fixed in upstream

https://github.com/cachix/devenv/issues/1497

* fix: set rebar3 path in devenv

* Revert "ci(debug): debug elixir version and locale"

This reverts commit 7ecdc77c16.

* ci: re-enable path check in DevOps workflow

* doc: update Development and Contributing guide with nix and treefmt

* ci: use PostgreSQL 17

* style: linter findings

* ci(fix): ensure cache name in build action does not contain invalid characters to avoid invalid reference format

* doc: update changelog

* Revert "ci(fix): ensure cache name in build action does not contain invalid characters to avoid invalid reference format"

This reverts commit 02abb0359d.

* ci: remove branch restriction for check_paths workflow to increase sec

* ci(fix): run ghcr build workflow only for specific conditions

- Ensure workflow only run if there are no changes to the .github folder
- Allow workflow to run on workflow call or PRs from forks
- Prevent duplicate runs for PRs from non-forks
- Avoid invalid reference format for cache name in PRs from our repository

* doc: update changelog

* fix: update hash for mix-deps package in flake.nix

* fix: disable flakeCheck for formatter, as mix format need the dep to be fetched beforehand

* ci(fix): run ghcr build workflow only for specific conditions

* fix: move nixosModules.default to top-level attribute set

* refactor: remove unnecessary config nesting in formatter.nix

* ci(fix): ensure version for buildx is set to correct name

---------

Co-authored-by: scottbot95 <scottbot95@gmail.com>
2024-10-14 08:54:10 +02:00
Jakob Lichterfeld ad34131089 doc: update changelog 2024-10-07 09:02:27 +02:00
Jakob Lichterfeld dc64687ba8 doc: update changelog 2024-10-03 09:28:32 +02:00
Jakob Lichterfeld 508bcf4f69 doc: update changelog 2024-09-29 11:22:15 +02:00
Jakob Lichterfeld 70d259cd40 doc: update changelog 2024-09-29 11:20:08 +02:00
Jakob Lichterfeld 84335ebf9b doc: update changelog 2024-09-29 11:18:19 +02:00
Jakob Lichterfeld 5737c543aa doc: update changelog 2024-09-28 15:26:34 +02:00
Jakob Lichterfeld 6871ef73d4 Revert "doc: update changelog"
This reverts commit 6c74011f3c.
2024-09-23 11:11:26 +02:00
Jakob Lichterfeld 6c74011f3c doc: update changelog 2024-09-20 16:35:11 +02:00
Jakob Lichterfeld 05068a0b93 doc: update changelog 2024-09-18 09:58:46 +02:00
Jakob Lichterfeld 852b29606b doc: update changelog 2024-09-18 09:34:17 +02:00
Jakob Lichterfeld e5a4a9d086 doc: update changelog 2024-09-18 09:33:36 +02:00
Jakob Lichterfeld 7850dd0227 doc: update changelog 2024-09-18 09:30:36 +02:00
Jakob Lichterfeld fa85b5d2fc doc: update changelog 2024-09-18 09:18:29 +02:00
Jakob Lichterfeld 107bf47e50 doc: update changelog 2024-09-18 08:28:33 +02:00
JakobLichterfeld 1ac5fd7967 chore: Update tzdata to version 1.1.2 and mimerl to version 1.3.0 (#4205)
* chore: Update tzdata to version 1.1.2 and mimerl to version 1.3.0

fixes: #4196

* doc: update changelog
2024-09-17 11:00:09 +02:00
Matthias Wirtz c64384f0f6 add moving average / percentiles to charge level (#4200) 2024-09-16 14:09:45 +02:00
Jakob Lichterfeld 57ac19a500 doc: update changelog 2024-09-15 09:58:14 +02:00
Jakob Lichterfeld 363e5a6616 doc: update changelog 2024-09-09 09:03:18 +02:00
Matthias Wirtz ad3f34b693 Improve rounding to month / weeks / days in Updates "Since Previous Update" column (#4164) 2024-09-03 11:05:02 +02:00
JakobLichterfeld fedb206f50 doc: clarify using fleet api has lots of drawbacks (#4173)
* doc: fix markdownlint warnings in fleet api documentation

* doc: update changelog

* doc: clarify using fleet api has lots of drawbacks
2024-08-31 16:32:15 +02:00
Jakob Lichterfeld 1711db0479 doc: update changelog 2024-08-31 16:31:52 +02:00
Jakob Lichterfeld e2448bc9c1 doc: update changelog 2024-08-31 14:35:15 +02:00
Jakob Lichterfeld faa37fe4ff doc: update changelog 2024-08-28 10:53:53 +02:00
Jakob Lichterfeld 2932dde2e5 doc: update changelog 2024-08-23 12:47:22 +02:00
Jakob Lichterfeld 9b2de5ffa0 doc: update changelog 2024-08-22 18:26:44 +02:00
Jakob Lichterfeld 0c154ae11f doc: update changelog 2024-08-21 14:24:51 +02:00
Jakob Lichterfeld 3d461e5191 doc: fix typos in changelog 2024-08-21 14:22:29 +02:00
Jakob Lichterfeld 9baae91c58 doc: update changelog 2024-08-21 14:19:30 +02:00
Jakob Lichterfeld 1fd5e4aa53 doc: update changelog 2024-08-21 13:11:21 +02:00
JakobLichterfeld 5ac4468711 chore: update PostgreSQL to version 16 in flake.nix (#4135)
* chore: update PostgreSQL to version 16 in flake.nix

* doc: update changelog
2024-08-12 11:06:48 +02:00
Jakob Lichterfeld cabb474504 doc: update changelog 2024-08-06 16:46:18 +02:00
Jakob Lichterfeld db68836f13 doc: update changelog 2024-08-02 16:51:33 +02:00
Jakob Lichterfeld 2ec5ff3ff1 doc: update changelog 2024-08-02 16:31:13 +02:00
JakobLichterfeld 18fc058d50 chore: correct comment for pinned Docker login-action to version 3.2.0 (#4120)
* chore: correct comment for pinned Docker login-action to version 3.2.0

* doc: update changelog
2024-08-02 16:29:34 +02:00
Jakob Lichterfeld 0c8a2e197d doc: update changelog 2024-07-29 11:15:45 +02:00
Jakob Lichterfeld cf340d6615 doc: update changelog 2024-07-28 09:21:58 +02:00
Jakob Lichterfeld 281be03368 doc: update changelog 2024-07-27 14:07:46 +02:00
Tobias Lindberg 23c8bccff6 Adding missing Swedish translation (#4097)
* Adding missing Swedish translation

* doc: update changelog
2024-07-23 16:18:41 +02:00
Jakob Lichterfeld 401715ebc1 doc: update changelog 2024-07-17 10:16:53 +02:00
JakobLichterfeld 97b5bfcb1a doc: Add initial author and list of contributors to README.md (#4084)
* doc: Add initial author and list of contributors to README.md

* doc: update changelog
2024-07-15 10:00:29 +02:00
Jakob Lichterfeld 95ede4b7e9 doc: update changelog 2024-07-11 08:14:07 +02:00
Jakob Lichterfeld 04914eb0da doc: update changelog 2024-07-11 08:12:49 +02:00
Jakob Lichterfeld d64a36147e build: prepare v1.30.2-dev 2024-07-10 08:37:02 +02:00
Jakob Lichterfeld df87d93f9a build: release v1.30.1 2024-07-10 08:34:55 +02:00
Jakob Lichterfeld 850579d29d doc: update changelog 2024-07-10 08:27:36 +02:00
Jakob Lichterfeld 6f201cf0b2 doc: update changelog 2024-07-10 08:26:37 +02:00
Jakob Lichterfeld 4f0d5c1f6c doc: update changelog 2024-07-10 08:26:05 +02:00
JakobLichterfeld 57acace358 ci: fix coverage report env variable (#4066)
* ci: fix coverage report env variable

* doc: update changelog
2024-07-08 16:26:21 +02:00
Jakob Lichterfeld 4c7ec6746e doc: update changelog 2024-07-08 14:06:09 +02:00