Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
on:
pull_request:
push:
branches: [main]
pull_request:
types: [labeled, opened, synchronize, reopened, review_requested, ready_for_review]
pull_request_review:
types: [submitted]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NIX_PATH: "nixpkgs=https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"
jobs:
flake-check:
name: nix flake check
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v30
- run: nix flake check -L github:vic/checkmate --override-input target github:$GITHUB_REPOSITORY/$GITHUB_SHA
- uses: wimpysworld/nothing-but-nix@main
- uses: cachix/install-nix-action@v31
- uses: DeterminateSystems/magic-nix-cache-action@v13
- uses: actions/checkout@v6
- run: nix-shell ./shell.nix --run 'just ci'

19 changes: 11 additions & 8 deletions Justfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
system := `nix-instantiate --eval --raw -E builtins.currentSystem`

help:
just -l

ci:
just fmt -- --ci --no-cache
just test
docs:
cd docs && pnpm run dev

zerover:
echo "obase=2; $(date +%s)" | bc

fmt *args:
nix run github:denful/checkmate#fmt --override-input target path:. -L {{args}}
treefmt {{args}}

test *args:
nix flake check github:denful/checkmate --override-input target . -L {{args}}
ci:
just fmt --ci --no-cache
just test

test suite="all" *args:
nix-unit --expr 'let x = import ./tests.nix; in if "{{suite}}" == "all" then x else x.{{suite}}' {{args}}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ with-inputs outputs

## Testing

`import-tree` uses [`checkmate`](https://github.com/denful/checkmate) for testing:

```sh
nix flake check github:denful/checkmate --override-input target path:.
nix-shell ./shell.nix --run 'just ci'
```
7 changes: 0 additions & 7 deletions checkmate/modules/formatter.nix

This file was deleted.

282 changes: 0 additions & 282 deletions checkmate/modules/tests.nix

This file was deleted.

1 change: 1 addition & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default defineConfig({
{ label: 'Filtering Files', slug: 'guides/filtering' },
{ label: 'Transforming Paths', slug: 'guides/mapping' },
{ label: 'Custom API', slug: 'guides/custom-api' },
{ label: 'Combinator Syntax', slug: 'guides/combinator' },
{ label: 'Outside Modules', slug: 'guides/outside-modules' },
{ label: 'Dendritic Pattern', slug: 'guides/dendritic' },
],
Expand Down
18 changes: 9 additions & 9 deletions docs/src/content/docs/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ description: Get help, share your work, and find real-world import-tree usage.

## Get Support

- [GitHub Issues](https://github.com/denful/import-tree/issues) report bugs, request features
- [GitHub Discussions](https://github.com/denful/import-tree/discussions) ask questions, share ideas
- [GitHub Issues](https://github.com/denful/import-tree/issues) - report bugs, request features
- [GitHub Discussions](https://github.com/denful/import-tree/discussions) - ask questions, share ideas

Everyone is welcome. Be kind and respectful.

## Real-World Usage

- [GitHub Code Search](https://github.com/search?q=language%3ANix+import-tree&type=code) find projects using import-tree
- [Dendrix Trees](https://denful.github.io/dendrix/Dendrix-Trees.html) community index of dendritic setups
- [GitHub Code Search](https://github.com/search?q=language%3ANix+import-tree&type=code) - find projects using import-tree
- [Dendrix Trees](https://denful.github.io/dendrix/Dendrix-Trees.html) - community index of dendritic setups

## Ecosystem

- [Den](https://github.com/denful/den) context-aware dendritic Nix framework
- [flake-aspects](https://github.com/denful/flake-aspects) aspect composition library
- [denful](https://github.com/denful/denful) community aspect distribution
- [Dendrix](https://dendrix.oeiuwq.com/) index of dendritic aspects
- [Dendritic Design](https://github.com/mightyiam/dendritic) the pattern that inspired this ecosystem
- [Den](https://github.com/denful/den) - context-aware dendritic Nix framework
- [flake-aspects](https://github.com/denful/flake-aspects) - aspect composition library
- [denful](https://github.com/denful/denful) - community aspect distribution
- [Dendrix](https://dendrix.oeiuwq.com/) - index of dendritic aspects
- [Dendritic Design](https://github.com/mightyiam/dendritic) - the pattern that inspired this ecosystem
Loading
Loading