-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nix): improve flake.nix
, adding checks
and formatter
#542
Conversation
3fd514b
to
a3c4f8c
Compare
a3c4f8c
to
949544c
Compare
6985d84
to
57120bb
Compare
57120bb
to
ee3a3a5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
see 20 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Maybe its a good idea to include |
Build and tests runs locally, CI looks good ✅ |
I agree. We should be able to do this fairly easily with https://github.com/cachix/git-hooks.nix. Perhaps a different PR? |
This commit switches our nix build to use crane. Crane not only has better support for building in Cargo workspaces, but also permits one to only build all workspace dependencies. This is extremely useful for caching all our Rust dependencies. Co-authored-by: zcabter <[email protected]>
This commit fixes the existing (broken) Nix support for building our TypeScript packages. We have to (unfortunately) rely on an overlay for buildNpmPackage since the current support in Nixpkgs is broken
This commit uses cargo-nextest to run the cargo tests in `nix flake check`.
This commit configures rustfmt, alejandra, prettier, and shfmt.
6fa393f
to
f3b2beb
Compare
Ok let's do it in a follow up. Tracked here: https://linear.app/tezos/issue/JSTZ-73/run-nix-fmt-in-pre-commit-hook |
Context
Dependencies: #543
Related Tasks: jstz-45, jstz-48
This PR is the first one in the line of work of transitioning our CI to an entirely Nix-based environment.
Description
This PR contains a number of changes (separated into commits):
crane
to build our Rust crates --crane
is a Nix library for building Rust projects with excellent integration into tooling and caching of dependencies@jstz-dev/jstz
and@jstz-dev/types
packagesnix flake check
snix fmt
to format the codebaseManually testing the PR