Print more environment information
This commit is contained in:
@@ -8,9 +8,24 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Print Environment
|
- name: Print Environment
|
||||||
run: |
|
run: |
|
||||||
which nix || echo "nix not in PATH"
|
echo "=== whoami/hostname ==="
|
||||||
which node || echo "node not in PATH"
|
whoami
|
||||||
which npm || echo "npm not in PATH"
|
hostname
|
||||||
|
echo "=== pwd ==="
|
||||||
|
pwd
|
||||||
|
echo "=== PATH ==="
|
||||||
|
echo "$PATH"
|
||||||
|
echo "=== full env ==="
|
||||||
|
env | sort
|
||||||
|
echo "=== os-release ==="
|
||||||
|
cat /etc/os-release 2>/dev/null || echo "no os-release"
|
||||||
|
echo "=== does /nix exist ==="
|
||||||
|
ls -la /nix 2>&1 || echo "/nix missing"
|
||||||
|
echo "=== does /nix/var/nix/profiles/default/bin exist ==="
|
||||||
|
ls -la /nix/var/nix/profiles/default/bin 2>&1 || echo "missing"
|
||||||
|
echo "=== is this a container ==="
|
||||||
|
cat /proc/1/cgroup 2>/dev/null | head -5
|
||||||
|
[ -f /.dockerenv ] && echo "IS a docker container" || echo "NOT a docker container (no /.dockerenv)"
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
Reference in New Issue
Block a user