diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d400de..b706894 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: - name: Test Cache run: | dfx new test --type=motoko --no-frontend - mv test/* . + mv test/dfx.json . dfx start --background dfx canister create test_backend dfx stop diff --git a/src/cache-paths.ts b/src/cache-paths.ts index 3f1d643..a9d30c1 100644 --- a/src/cache-paths.ts +++ b/src/cache-paths.ts @@ -32,7 +32,7 @@ export function resolveDFXVersion(): string | undefined { export function getCachePaths(): string[] { let cachePaths: string[] = []; if (getInput("dfx-version") || getInput("dfx-version-file")) { - cachePaths.push(`${process.env.GITHUB_WORKSPACE}/.cache/dfinity`); + cachePaths.push(`${process.env.HOME}/.cache/dfinity`); cachePaths.push(`${process.env.GITHUB_WORKSPACE}/.dfx`); } if (getInput("vessel-version")) {