-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add action to install dfx and its corresponding test
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
on: [push] | ||
|
||
jobs: | ||
test_dfx_action: | ||
runs-on: ubuntu-latest | ||
name: Test the dfx action (action.yml) | ||
steps: | ||
# To use this repository's private action, you must check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Install dfx' | ||
description: 'Install the dfx utility at a particular version' | ||
inputs: | ||
dfx-version: | ||
description: > | ||
The dfx version to install. This value will be used to populate | ||
the DFX_VERSION variable that will be handled by the installation | ||
script "install.sh". | ||
default: '0.14.1' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install dfx | ||
shell: sh | ||
run: DFX_VERSION=${{ inputs.dfx-version }} sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" |