From fac05d1c339b8d459c9a5f869f610e11d635d71c Mon Sep 17 00:00:00 2001 From: Jordan Last Date: Wed, 12 Jun 2024 11:02:49 -0600 Subject: [PATCH] put in hopefully try fix for azle new --- .github/workflows/test.yml | 2 +- examples/new/test/pretest.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b70dd0f79..3b1eb14047 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -309,7 +309,7 @@ jobs: run: npm link azle - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} working-directory: ${{ matrix.example_directories }} - run: node_modules/.bin/azle install-dfx-extension + run: npx azle install-dfx-extension - if: ${{ needs.release-candidate-deploy.outputs.should_run_tests }} working-directory: ${{ matrix.example_directories }} run: dfx start --clean --background --host 127.0.0.1:8000 diff --git a/examples/new/test/pretest.ts b/examples/new/test/pretest.ts index 270f535ab7..26c9891436 100644 --- a/examples/new/test/pretest.ts +++ b/examples/new/test/pretest.ts @@ -7,6 +7,10 @@ async function pretest() { stdio: 'inherit' }); + execSync(`npx -y azle@${version} install-dfx-extension`, { + stdio: 'inherit' + }); + execSync(`cd hello_world && dfx canister uninstall-code backend || true`, { stdio: 'inherit' });