Skip to content

chore(examples): migrate all 7 examples to icp-cli and @dfinity/vetkeys #889

chore(examples): migrate all 7 examples to icp-cli and @dfinity/vetkeys

chore(examples): migrate all 7 examples to icp-cli and @dfinity/vetkeys #889

# Known failure: https://dfinity.atlassian.net/browse/EM-7
name: examples-password-manager-with-metadata
permissions: {}
on:
push:
branches:
- main
pull_request:
paths:
- examples/password_manager_with_metadata/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/examples-password-manager-with-metadata.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
examples-password-manager-with-metadata-rust-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Darwin
run: |
bash .github/workflows/provision-darwin.sh
- name: Deploy Password Manager With Metadata Darwin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cargo install candid-extractor
cd examples/password_manager_with_metadata/rust
icp network start -d && icp deploy
cd frontend
npm run lint
examples-password-manager-with-metadata-rust-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Deploy Password Manager With Metadata Linux
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cargo install candid-extractor
cd examples/password_manager_with_metadata/rust
icp network start -d && icp deploy
cd frontend
npm run lint
examples-password-manager-with-metadata-motoko-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Darwin
run: |
bash .github/workflows/provision-darwin.sh
- name: Deploy Password Manager With Metadata Darwin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cargo install candid-extractor
cd examples/password_manager_with_metadata/motoko
icp network start -d && icp deploy
cd frontend
npm run lint
examples-password-manager-with-metadata-motoko-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Deploy Password Manager With Metadata Linux
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cargo install candid-extractor
cd examples/password_manager_with_metadata/motoko
icp network start -d && icp deploy
cd frontend
npm run lint