-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add a workflow that tracks acvm version for integration tests (#…
…2700) Co-authored-by: kevaundray <kevtheappdev@gmail.com> Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com> Co-authored-by: Tom French <tom@tomfren.ch>
- Loading branch information
1 parent
4aa6b49
commit a8af95b
Showing
3 changed files
with
38 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Track ACVM for Integration Tests | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'Cargo.lock' | ||
- 'yarn.lock' | ||
|
||
jobs: | ||
check_matching_version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check acvm version change | ||
run: | | ||
# Extract acvm version from the current Cargo.lock | ||
CURRENT_VERSION=$(awk '/name = "acvm"/ {getline; print $3}' Cargo.lock | tr -d '"') | ||
INTEGRATION_TEST_VERSION=$(yarn workspace integration-tests info @noir-lang/acvm_js --json | jq .children.Version | tr -d '"') | ||
echo "Current ACVM Version: $CURRENT_VERSION" | ||
echo "Integration Test ACVM Version: $INTEGRATION_TEST_VERSION" | ||
if [ "$CURRENT_VERSION" != "$INTEGRATION_TEST_VERSION" ]; then | ||
exit 1 | ||
else | ||
echo "ACVM version is a match." | ||
fi |
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