-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use pyTooling/Actions/with-post-step for commands in run and post…
…-run
- Loading branch information
1 parent
fd78345
commit 6c0f6cf
Showing
7 changed files
with
28 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,29 +181,12 @@ runs: | |
mkdir -p node_modules/.cache/agoric | ||
date > node_modules/.cache/agoric/yarn-built | ||
# Refs: https://github.com/orgs/community/discussions/45342 | ||
- name: Validate Git Tree in Root Directory | ||
if: inputs.path == '.' | ||
uses: ./.github/actions/with-post-step | ||
- name: Validate Git Tree Cleanliness | ||
uses: pyTooling/Actions/[email protected] | ||
with: | ||
main: echo "Checking Git tree for changes in the root directory..." | ||
main: | | ||
bash "$SRC/.github/actions/restore-node/check-git-status.sh" "$SRC" | ||
post: | | ||
set -x | ||
if [ -n "$(git status --porcelain | grep -vE 'junit.xml$' | grep -vE '^[?][?] endo-sha.txt$|^.'; true)" ]; then | ||
git status | ||
echo "Unexpected dirty git status in default path" 1>&2 | ||
exit 1 | ||
fi | ||
- name: Validate Git Tree in Agoric SDK Directory | ||
if: inputs.path == './agoric-sdk' | ||
uses: ./agoric-sdk/.github/actions/with-post-step | ||
with: | ||
main: echo "Checking Git tree for changes in the root directory..." | ||
post: | | ||
set -x | ||
if [ -n "$(git status --porcelain | grep -vE 'junit.xml$' | grep -vE '^[?][?] endo-sha.txt$|^.'; true)" ]; then | ||
git status | ||
echo "Unexpected dirty git status in Agoric SDK path" 1>&2 | ||
exit 1 | ||
fi | ||
bash "$SRC/.github/actions/restore-node/check-git-status.sh" "$SRC" | ||
env: | ||
SRC: ${{ inputs.path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,7 @@ api-docs | |
|
||
chaintest | ||
_testoutput.txt | ||
|
||
|
||
junit.xml | ||
endo-sha.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,3 +87,6 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
# rosetta-cli executable | ||
bin/rosetta-cli |