Skip to content

Commit

Permalink
fix(ci): actually test there's one entry in the default profile
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Mar 31, 2024
1 parent 2963e07 commit 356f04d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,20 @@ jobs:
- name: Pin nixpkgs
run: ${{ env.pin_nixpkgs }}

# Stuff in a profile can survive garbage collection.
# Therefore, profiles are ignored when restoring a cache.
# So, the current profile should be the default profile created by nix-quick-install-action.
# The default profile should contain only nix.
- name: List profile (should be empty)
run: nix profile list

- name: Check that the profile is empty
shell: bash
run: |
[[ -z "$(nix profile list)" ]] || printf "Profile isn't empty!"
nix profile list \
| grep 'Index' \
| wc -l \
| xargs test 1 -eq
- name: Install nixpkgs#poetry
run: nix profile install nixpkgs#poetry
Expand Down

0 comments on commit 356f04d

Please sign in to comment.