Silvan Mosberger
e120425bb2
workflows/check-nix-format: Mention who to ping for trouble
...
The formatting team can't be looking through all PRs to see if anybody
is struggling.
2024-08-25 01:12:25 +02:00
Silvan Mosberger
91add64d00
workflows/check-nix-format: Better nix-shell
message
...
As [suggested](https://github.com/NixOS/nixpkgs/pull/334286#issuecomment-2286131096 ) by @nh2
2024-08-19 16:26:54 +02:00
Adam Stephens
15e9fcd961
workflows/*: ensure jobs have names
2024-07-31 23:28:40 -04:00
Silvan Mosberger
a1c36999b8
workflows/check-nix-format: Allow testing in forks
...
It seems like imposed limitation came from ofborg not running in forks,
which doesn't apply for standard GitHub actions:
88c60d97fc
2024-07-27 14:14:12 +02:00
Silvan Mosberger
44f17f8392
workflows/check-nix-format: Fix reporting of renamed files
...
When a file was renamed, it would previously report the old path as
being unformatted. This fixes it to report the new one instead.
2024-07-27 14:08:22 +02:00
Silvan Mosberger
1f0b359712
Enforce nixfmt on new files and changed files that were already formatted ( #326407 )
...
* workflows/check-nix-format: Enforce nixfmt on new/changed files
This makes the Nix format workflow check new/changed files instead of
just an allowlist.
This enforces that all PRs updated after this is merged are required to
have fully standard formatted Nix files!
* workflows/check-nix-format: determine changed files via base commit
The next commit will use this to have a simpler change
* workflows/check-nix-format: Only ensure for already formatted files
This prevents situations where contributors need to suddenly format a
huge file even if they only changed a small part of it (e.g.
all-packages.nix)
2024-07-23 15:03:15 -04:00
dependabot[bot]
ab7becf047
build(deps): bump cachix/install-nix-action from 26 to 27
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 26 to 27.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](8887e596b4...ba0dd844c9
)
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 20:04:12 +00:00
dependabot[bot]
d14441cfe1
build(deps): bump actions/checkout from 4.1.5 to 4.1.7
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.5 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](44c2b7a8a4...692973e3d9
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-29 22:01:52 +00:00
Silvan Mosberger
d0bebb7d6b
workflows/check-nix-format: strip newline from file listings
...
Otherwise it prints the command to run with an empty entry:
nixfmt '<stuff>' ''
Thanks to https://yaml-multiline.info/ for the great help with this
2024-06-26 16:16:51 +02:00
Silvan Mosberger
53b517c685
workflows/check-nix-format: show command to fix
...
When some files are not formatted properly, this shows how people can
fix the problem.
This notably uses the shell.nix introduced in the parent commit to
ensure that the nixfmt version matches what CI expects.
2024-06-26 16:16:51 +02:00
Silvan Mosberger
b33ac05d04
ci: reusable Nix format Nixpkgs pin
...
This is needed such that in the next commit, we can re-use the same
version from a shell.nix, allowing people to have a guaranteed matching
nixfmt version.
2024-06-26 16:06:49 +02:00
superherointj
22a9feb385
github/workflows/check-nix-format: add maintainers files
2024-06-17 21:59:36 -03:00
dependabot[bot]
9f4ea63603
build(deps): bump actions/checkout from 4.1.4 to 4.1.5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.4 to 4.1.5.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](0ad4b8fada...44c2b7a8a4
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 11:43:41 +00:00
superherointj
01f3bdb248
github/workflows: add k3s to check-nix-format
2024-05-10 18:55:58 -03:00
John Ericson
f571081899
Merge pull request #309577 from obsidiansystems/bsd-reformat
...
bsd treewide: Run RFC formatter
2024-05-06 15:08:43 -04:00
John Ericson
d516971246
workflows: Add pkgs/os-specific/bsd
to formatter whitelist
2024-05-06 15:04:41 -04:00
Pol Dellaiera
75ae762133
workflows/check-nix-format: enforce for build-support/php
2024-05-04 23:06:24 +02:00
Pol Dellaiera
c759efa5e7
workflows/check-nix-format: enforce for php-packages
2024-05-04 23:04:36 +02:00
nicoo
294953ddb3
workflows: enforce RFC166 formatting for mpvScripts
2024-05-03 19:13:32 +00:00
éclairevoyant
4818b00263
workflows/check-nix-format: enforce for vscode extensions
2024-05-01 06:00:27 -04:00
dependabot[bot]
c3ce4079d7
build(deps): bump actions/checkout from 4.1.3 to 4.1.4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.3 to 4.1.4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](1d96c772d1...0ad4b8fada
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 11:45:13 +00:00
dependabot[bot]
6bc4e63f5f
build(deps): bump actions/checkout from 4.1.1 to 4.1.3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.1 to 4.1.3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4.1.1...1d96c772d19495a3b5c517cd2bc0cb401ea0529f )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 11:31:52 +00:00
Someone Serge
a20f661a2c
workflows/check-nix-format.yml: pin nixpkgs (fix staging)
2024-04-03 18:20:36 +00:00
Connor Baker
d94495d5bc
workflows/check-nix-format.yml: init
2024-04-01 01:14:31 +00:00