Skip to content

Commit

Permalink
Add encrypted-notes-dapp-vetkd example
Browse files Browse the repository at this point in the history
  • Loading branch information
fspreiss committed Jul 10, 2023
1 parent 753f1fa commit 9b63347
Show file tree
Hide file tree
Showing 76 changed files with 25,188 additions and 0 deletions.
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

0 comments on commit 9b63347

Please sign in to comment.