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 encrypted-notes-dapp example based on vetKD #569

Merged
merged 4 commits into from
Jul 11, 2023
Merged
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
51 changes: 51 additions & 0 deletions .github/workflows/motoko-encrypted-notes-vetkd-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: motoko-encrypted-notes
on:
push:
branches:
- master
pull_request:
paths:
- motoko/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-encrypted-notes-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
motoko-encrypted-notes-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
env:
DFX_VERSION: 0.14.2
run: bash motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- name: Motoko Encrypted Notes Darwin (unit tests)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-unit BUILD_ENV=motoko MATCHERS="$(dfx cache show)/motoko-matchers/src"
popd
- name: Motoko Encrypted Notes Darwin (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=motoko
popd
motoko-encrypted-notes-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
env:
DFX_VERSION: 0.14.2
run: bash .github/workflows/provision-linux.sh
- name: Motoko Encrypted Notes Linux (unit tests)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-unit BUILD_ENV=motoko MATCHERS="$(dfx cache show)/motoko-matchers/src"
popd
- name: Motoko Encrypted Notes Linux (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=motoko
popd
16 changes: 16 additions & 0 deletions .github/workflows/motoko-encrypted-notes-vetkd-skip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: motoko-encrypted-notes
on:
pull_request:
paths-ignore:
- motoko/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-encrypted-notes-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo 'Not needed - relevant folder not touched'
51 changes: 51 additions & 0 deletions .github/workflows/rust-encrypted-notes-vetkd-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: rust-encrypted-notes
on:
push:
branches:
- master
pull_request:
paths:
- motoko/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/rust-encrypted-notes-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-encrypted-notes-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
env:
DFX_VERSION: 0.14.2
run: bash motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- name: Rust Encrypted Notes Darwin (unit tests)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-unit BUILD_ENV=rust
popd
- name: Rust Encrypted Notes Darwin (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=rust
popd
rust-encrypted-notes-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
env:
DFX_VERSION: 0.14.2
run: bash .github/workflows/provision-linux.sh
- name: Rust Encrypted Notes Linux (unit tests)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-unit BUILD_ENV=rust
popd
- name: Rust Encrypted Notes Linux (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=rust
popd
16 changes: 16 additions & 0 deletions .github/workflows/rust-encrypted-notes-vetkd-skip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: rust-encrypted-notes
on:
pull_request:
paths-ignore:
- rust/encrypted-notes-dapp-vetkd/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/rust-encrypted-notes-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo 'Not needed - relevant folder not touched'
2 changes: 2 additions & 0 deletions motoko/encrypted-notes-dapp-vetkd/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules
/.idea
17 changes: 17 additions & 0 deletions motoko/encrypted-notes-dapp-vetkd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
dist
**/node_modules
**/*.dfx
**/*.idea
**/*.wasm
!vetkd_user_lib/*.wasm
!internet_identity.wasm
!vetkd_system_api.wasm
src/declarations
src/frontend/declarations
src/frontend/public/build/*
src/encrypted_notes_rust/target
**/target
# Generated files
dfx.json
src/frontend/src/lib/backend.ts
src/frontend/src/lib/idlFactory.js
Loading