CI: Wrap nix devshell invocation with just
Some checks failed
/ verify (push) Has been cancelled

This commit also adds the flake version to the justfile's version check.
This commit is contained in:
Juno Takano 2026-06-29 02:56:17 -03:00
commit 014a30f3f6
No known key found for this signature in database
3 changed files with 27 additions and 21 deletions

View file

@ -16,10 +16,13 @@ jobs:
container:
image: rust:slim
steps:
- name: Install action dependencies
- name: Set up action dependencies
run: |
apt-get install --no-install-recommends --update -y \
nodejs git nix
echo experimental-features = nix-command flakes >> /etc/nix/nix.conf
echo 'export PATH=$PATH:$HOME/.nix-profile/bin' >> /etc/profile
nix profile install nixpkgs#just # trixie is on nix 2.26
- name: Checkout code
uses: actions/checkout@v6
@ -48,8 +51,5 @@ jobs:
- name: Assess
run: |
ENV_PATH=$PATH su ci -c "
nix --experimental-features 'nix-command flakes' \
develop path:$PWD \
-c just -f $PWD/.justfile verify
"
command -v just
just ci-nix "$PATH" verify