Skip to content

Commit

Permalink
feat: Add action to install dfx and its corresponding test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicu committed Aug 6, 2023
1 parent 77093ff commit 78c6a63
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tests/dfx-action.yml
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: ./
16 changes: 16 additions & 0 deletions action.yml
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)"

0 comments on commit 78c6a63

Please sign in to comment.