diff --git a/.github/actions/restore-node/action.yml b/.github/actions/restore-node/action.yml index c2143659c95..bf48fc1a5fd 100644 --- a/.github/actions/restore-node/action.yml +++ b/.github/actions/restore-node/action.yml @@ -181,18 +181,12 @@ runs: mkdir -p node_modules/.cache/agoric date > node_modules/.cache/agoric/yarn-built - - name: git dirty check - working-directory: ${{ inputs.path }} - shell: bash - run: |- - set -x - # Fail if `git status` reports anything other than the following: - # * an untracked endo-sha.txt from above - # * work tree files that have been staged without further changes - # (e.g., package.json or yarn.lock) as indicated by the Y position - # in "XY PATH" being a space - if [ -n "$(git status --porcelain | grep -vE '^[?][?] endo-sha.txt$|^. '; true)" ]; then - git status - echo "Unexpected dirty git status" 1>&2 - exit 1 - fi + - name: Validate Git Tree Cleanliness + uses: pyTooling/Actions/with-post-step@v0.4.5 + with: + main: | + bash "$SRC/.github/actions/restore-node/check-git-status.sh" "$SRC" + post: | + bash "$SRC/.github/actions/restore-node/check-git-status.sh" "$SRC" + env: + SRC: ${{ inputs.path }} diff --git a/.github/actions/restore-node/check-git-status.sh b/.github/actions/restore-node/check-git-status.sh new file mode 100644 index 00000000000..e95d150ec32 --- /dev/null +++ b/.github/actions/restore-node/check-git-status.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Set verbose execution +set -x +# Navigate to the specified directory +cd "$1" || exit $? +# Check for unexpected changes +# Fail if git status detects changes +changes=$(git status --porcelain) +if [ -n "$changes" ]; then + git status + echo "Unexpected dirty git status in Agoric SDK path" + exit 1 +fi diff --git a/.gitignore b/.gitignore index 924317ab198..4868d9a80f4 100644 --- a/.gitignore +++ b/.gitignore @@ -68,3 +68,7 @@ api-docs chaintest _testoutput.txt + + +junit.xml +endo-sha.txt \ No newline at end of file diff --git a/a3p-integration/.gitignore b/a3p-integration/.gitignore index 2027ea67059..ddfb8bb6826 100644 --- a/a3p-integration/.gitignore +++ b/a3p-integration/.gitignore @@ -15,6 +15,7 @@ upgrade-test-scripts # same for each proposal, an independent project proposals/*/.pnp.* proposals/*/.yarn/* +proposals/a:upgrade-next/* !proposals/*/.yarn/patches !proposals/*/.yarn/plugins !proposals/*/.yarn/releases diff --git a/packages/cosmic-swingset/.gitignore b/packages/cosmic-swingset/.gitignore index fd4c7ab84c2..c54a14d5162 100644 --- a/packages/cosmic-swingset/.gitignore +++ b/packages/cosmic-swingset/.gitignore @@ -87,3 +87,6 @@ typings/ # next.js build output .next + +# rosetta-cli executable +bin/rosetta-cli \ No newline at end of file