mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
update treefmt configuration
This commit is contained in:
parent
9734eba858
commit
a51bd670d6
4 changed files with 16 additions and 20 deletions
19
.github/workflows/test.yml
vendored
19
.github/workflows/test.yml
vendored
|
|
@ -10,17 +10,16 @@ jobs:
|
|||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ ubuntu-latest ]
|
||||
os: [ubuntu-latest]
|
||||
# FIXME macos garbage currently collect also nix-shell that runs the test
|
||||
#os: [ ubuntu-latest, macos-latest ]
|
||||
variants: [ stable, latest, bash4 ]
|
||||
variants: [stable, latest, bash4]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@V27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
- run:
|
||||
"nix run --accept-flake-config .#test-runner-${{ matrix.variants }}"
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@V27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
- run: "nix run --accept-flake-config .#test-runner-${{ matrix.variants }}"
|
||||
|
|
|
|||
2
.github/workflows/update-flake-lock.yml
vendored
2
.github/workflows/update-flake-lock.yml
vendored
|
|
@ -24,5 +24,5 @@ jobs:
|
|||
```
|
||||
{{ env.GIT_COMMIT_MESSAGE }}
|
||||
```
|
||||
pr-labels: | # Labels to be set on the PR
|
||||
pr-labels: | # Labels to be set on the PR
|
||||
merge-queue
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# shellcheck shell=bash
|
||||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="
|
||||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="
|
||||
fi
|
||||
use flake
|
||||
|
|
|
|||
13
treefmt.nix
13
treefmt.nix
|
|
@ -18,16 +18,13 @@
|
|||
shellcheck.enable = true;
|
||||
shfmt.enable = true;
|
||||
statix.enable = true;
|
||||
yamlfmt.enable = true;
|
||||
};
|
||||
|
||||
settings.formatter =
|
||||
let
|
||||
shellIncludes = [ "*.sh" "direnvrc" ];
|
||||
in
|
||||
{
|
||||
shellcheck.includes = shellIncludes;
|
||||
shfmt.includes = shellIncludes;
|
||||
};
|
||||
settings.formatter = {
|
||||
shellcheck.includes = [ "direnvrc" ];
|
||||
shfmt.includes = [ "direnvrc" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue