Skip to content

Commit

Permalink
verbose logging for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
soilking committed Aug 2, 2024
1 parent a7e0c2f commit 5d24b58
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.subgraph-basin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,21 @@ jobs:
- name: Install The Graph CLI
run: npm install -g @graphprotocol/graph-cli

- name: Set environment variables for verbose logging
run: echo "YARN_ENABLE_INLINE_BUILDS=true" >> $GITHUB_ENV
- name: Install Dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
working-directory: projects/subgraph-basin
- name: Install dependencies
run: |
yarn install --immutable || exit_code=$?
if [ -n "$exit_code" ]; then
echo "Yarn install failed with exit code $exit_code"
log_file=$(find /tmp -name 'pack.log' | tail -n 1)
if [ -f "$log_file" ]; then
echo "==== Pack Log File ===="
cat "$log_file"
echo "======================="
else
echo "No pack.log file found."
fi
exit $exit_code
fi
# Generate code and check for uncommitted changes
# https://github.com/marketplace/actions/check-uncommitted-changes
Expand Down

0 comments on commit 5d24b58

Please sign in to comment.