Skip to content

Commit

Permalink
add dfx install
Browse files Browse the repository at this point in the history
  • Loading branch information
happyhackerbird committed Apr 16, 2024
1 parent a029d92 commit 6c86520
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/gh-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Install
- name: Install dfx and dependencies
run: |
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
npm install
mkdir src/civic_canister_backend/dist
- name: Install canisters and start local ICP replica
run: |
dfx start --clean --background
dfx canister create --all
mkdir src/civic_canister_backend/dist
- name: Build
- name: Build canisters
run: dfx build --verbose
- name: Deploy
- name: Deploy canisters
run: dfx canister install --all && dfx deploy
- name: Run tests
run: cargo test --test integration_tests --verbose
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Usage

Install `dfx` if not already installed:
```
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
```

Building and deploying the canisters:
```
npm install
Expand Down

0 comments on commit 6c86520

Please sign in to comment.