Skip to content

drafted a new implementation of the recovering retriever. #708

drafted a new implementation of the recovering retriever.

drafted a new implementation of the recovering retriever. #708

Workflow file for this run

name: Check Spec References
on: [push, pull_request]
jobs:
check-specrefs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check version consistency
run: |
GRADLE_VERSION=$(grep 'def refTestVersion = nightly ?' build.gradle | sed 's/.*"\(.*\)"/\1/')
ETHSPECIFY_VERSION=$(grep '^version:' specrefs/.ethspecify.yml | sed 's/version: //')
if [ "$GRADLE_VERSION" != "$ETHSPECIFY_VERSION" ]; then
echo "Version mismatch between gradle and ethspecify"
echo " build.gradle: $GRADLE_VERSION"
echo " specrefs/.ethspecify.yml: $ETHSPECIFY_VERSION"
exit 1
else
echo "Versions match: $GRADLE_VERSION"
fi
- name: Install ethspecify
run: python3 -mpip install ethspecify
- name: Update spec references
run: ethspecify process --path=specrefs
- name: Check for differences
run: |
if ! git diff --exit-code specrefs >/dev/null; then
echo "Spec references are out-of-date!"
echo ""
git --no-pager diff specrefs
exit 1
else
echo "Spec references are up-to-date!"
fi
- name: Check spec references
run: ethspecify check --path=specrefs