Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fetching version on test workflow #2

Closed
wants to merge 14 commits into from
12 changes: 10 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
branches:
- main
- dev

jobs:
setup-and-run:
Expand All @@ -24,16 +25,23 @@ jobs:

- name: Update path
run: echo "/home/runner/.aztec/bin" >> $GITHUB_PATH

- name: Fetch latest Aztec version
run: |
RAW_VERSION=$(node ./.github/scripts/fetchRelease.js)
AZTEC_VERSION=$(echo "$RAW_VERSION" | sed 's/aztec-packages-v//')
echo "AZTEC_VERSION=$AZTEC_VERSION" >> "$GITHUB_ENV"

- name: Set Aztec version and start sandbox
run: |
VERSION=0.68.0 aztec-up
echo "Using Aztec version: $AZTEC_VERSION"
VERSION=$AZTEC_VERSION aztec-up
aztec start --sandbox &

- name: Install project dependencies
run: yarn

- name: Compile, generate code, and run tests
- name: Compile
run: script -e -c "${AZTEC_NARGO:-aztec-nargo} compile"

- name: Codegen
Expand Down
Loading