Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Mar 22, 2022
1 parent a0276d8 commit 078a3d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 59 deletions.
73 changes: 14 additions & 59 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ jobs:
env:
CGO_ENABLED: 0
steps:
- name: Setup Dynamic Env
run: |
echo "MAKEFLAGS=-j$(nproc)" | tee $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v2

Expand All @@ -21,67 +17,26 @@ jobs:
with:
nix_path: nixpkgs=channel:nixpkgs-unstable

- name: Multiline env set
- name: Install Nix Packages
run: |
set -x
v=$(printf 'hello\nworld\n')
echo "$v" | wc -l
echo "v_naive=$v" >>$GITHUB_ENV
echo "v_escaped=${v//$'\n'/'%0A'}" >>$GITHUB_ENV
nix-shell --run true
./direnv allow
./direnv export gha >> "$GITHUB_ENV"
- name: Multiline env check
- name: Check Nix Packages without direnv
run: |
set -x
echo "$v" | wc -l
echo "$v_naive"
echo "$v_naive" | wc -l
echo "$v_escaped="
echo "$v_escaped=" | wc -l
echo PYTHONPATH=$PYTHONPATH
which prettier
- name: Install Nix Packages
- name: Install Nix Packages & Export Using direnv
run: |
set -x
echo PATHs pre
env -0 | while IFS='=' read -r -d '' n v; do
printf "%s\n" "$n"
done | sort | tee envs-pre
tr ':' '\n' <<<$PATH | sort | tee path-pre
tr ':' '\n' <<<$PYTHONPATH | sort | tee pythonpath-pre
nix-env -f shell.nix -i -A buildInputs
nix-shell --run true
./direnv allow
./direnv export gha >> "$GITHUB_ENV"
echo PATHs post
env -0 | while IFS='=' read -r -d '' n v; do
printf "%s\n" "$n"
done | sort | tee envs-post
tr ':' '\n' <<<$PATH | sort | tee path-post
tr ':' '\n' <<<$PYTHONPATH | sort | tee pythonpath-post
diff -u envs-pre envs-post
diff -u path-pre path-post
diff -u pythonpath-pre pythonpath-post
- name: Check Nix Packages
- name: Check Nix Packages with direnv
run: |
set -x
echo PATHs
env -0 | while IFS='=' read -r -d '' n v; do
printf "%s\n" "$n"
done | sort | tee envs-post
tr ':' '\n' <<<$PATH | sort
tr ':' '\n' <<<$PYTHONPATH | sort
- name: Install Go tools
run: make tools

- name: Linters and Go Formatting
run: make verify

- name: Non Go Formatters
run: nix-shell --run ./.github/workflows/formatters.sh

- name: Install ZFS
run: sudo apt-get -y update && sudo apt-get -y install zfsutils-linux

- name: Tests
run: sudo make test
echo PYTHONPATH=$PYTHONPATH
which prettier
Binary file added direnv
Binary file not shown.

0 comments on commit 078a3d1

Please sign in to comment.