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

Add Caches #13

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,19 @@ jobs:
install-moc: true
vessel-version: 0.7.0
pocket-ic-version: release-2024-04-24_23-01-base
- run: |
- name: Test Versions
run: |
dfx --version
moc --version
vessel --version
pocket-ic --version
- name: Test Cache
run: |
dfx new test --type=motoko --no-frontend
mv test/dfx.json .
dfx start --background
dfx canister create test_backend
dfx stop

vessel init
vessel sources
18 changes: 15 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,31 @@ description: 'Setup a dfx environment and add it to the PATH.'
inputs:
dfx-version:
description: 'The dfx version to download. If empty DFX will not be installed. You can also use "latest" to get the latest version.'
dfx-version-file:
description: 'The path to the `dfx.json` file. Will be used to get the dfx version.'
dfx-disable-encryption:
description: 'Whether to use the .pem encryption.'
default: "false"
default: false
cache:
description: 'Whether to cache the dfx installation.'
default: true
pocket-ic-version:
description: 'The pocket ic version to download. If empty pocket ic will not be installed.'
install-moc:
description: 'Whether to install moc through dfx.'
default: "false"
default: false
vessel-version:
description: 'The vessel version to download. If empty vessel will not be installed.'
outputs:
dfx-version:
description: 'The dfx version that was installed.'
cache-hit:
description: 'Whether the cache was hit.'
runs:
using: 'node20'
main: 'dist/index.js'
main: 'dist/setup/index.js'
post: 'dist/cache-save/index.js'
post-if: success()
branding:
icon: 'box'
color: 'gray-dark'
84,118 changes: 84,118 additions & 0 deletions dist/cache-save/index.js

Large diffs are not rendered by default.

1,044 changes: 1,044 additions & 0 deletions dist/cache-save/license.txt

Large diffs are not rendered by default.

Loading