Skip to content

Commit

Permalink
debug ci fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Mar 29, 2022
1 parent d488237 commit 73aa8e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/go.yml
@@ -1,8 +1,7 @@
name: Go
on:
push:
branches: [ master ]
pull_request: {}
pull_request:
jobs:
build:
name: Build
Expand Down Expand Up @@ -46,13 +45,19 @@ jobs:
id: test-gha-setup
run: |
topdir=$PWD
echo MMLB: RANDOM=$RANDOM SRANDOM=$SRANDOM
echo MMLB: DIRENV_GITHUB_ACTIONS_TEST_EXPORT=$DIRENV_GITHUB_ACTIONS_TEST_EXPORT
cd test/scenarios/github-actions/
"$topdir/direnv" allow
echo MMLB: DIRENV_GITHUB_ACTIONS_TEST_EXPORT=$DIRENV_GITHUB_ACTIONS_TEST_EXPORT
"$topdir/direnv" export gha >> "$GITHUB_ENV"
cat "$GITHUB_ENV"
base64 -w0 <<<"$DIRENV_GITHUB_ACTIONS_TEST_EXPORT" | tee >"$topdir/DIRENV_GITHUB_ACTIONS_TEST_EXPORT.want"
- name: GitHub Actions Env Test Verification
run: |
set -x
cat "$GITHUB_ENV"
[[ -z ${DIRENV_GITHUB_ACTIONS_TEST_EXPORT:-} ]] && echo "DIRENV_GITHUB_ACTIONS_TEST_EXPORT is unset or empty" >&2 && exit 1
base64 -w0 <<<"$DIRENV_GITHUB_ACTIONS_TEST_EXPORT" | tee >DIRENV_GITHUBACTIONS_TEST_EXPORT_BASE64.got
diff -u DIRENV_GITHUBACTIONS_TEST_EXPORT_BASE64.want DIRENV_GITHUBACTIONS_TEST_EXPORT_BASE64.got
Expand Down

0 comments on commit 73aa8e5

Please sign in to comment.