Skip to content

Commit

Permalink
chore: move more tests out and add skeleton files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason I committed Apr 26, 2024
1 parent c80b8a0 commit 1e601a8
Show file tree
Hide file tree
Showing 69 changed files with 120 additions and 72 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/check-interface-spec-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
.github/workflows/hosting-unity-webgl-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-actor-reference.test.sh
.github/workflows/motoko-actor-reference-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-basic-bitcoin.test.sh
Expand All @@ -101,4 +101,31 @@ jobs:
.github/workflows/motoko-basic-dao-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-calc-example.test.sh
.github/workflows/motoko-calc-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-cert-var-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-classes-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-composite-query-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-counter-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-defi-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-dip721-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-echo-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-encrypted-notes-example.test.sh
- name: Build and deploy all examples
run: |
.github/workflows/motoko-encrypted-notes-vetkd-example.test.sh
5 changes: 5 additions & 0 deletions .github/workflows/motoko-cert-var-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
dfx start --background
pushd motoko/cert-var
make test
popd
10 changes: 2 additions & 8 deletions .github/workflows/motoko-cert_var-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Certified Variable Darwin
run: |
dfx start --background
pushd motoko/cert-var
make test
popd
.github/workflows/motoko-cert-var-example.test.sh
motoko-cert-var-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -34,7 +31,4 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko Certified Variable Linux
run: |
dfx start --background
pushd motoko/cert-var
make test
popd
.github/workflows/motoko-cert-var-example.test.sh
5 changes: 5 additions & 0 deletions .github/workflows/motoko-classes-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
dfx start --background
pushd motoko/classes
make test
popd
10 changes: 2 additions & 8 deletions .github/workflows/motoko-classes-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Classes Darwin
run: |
dfx start --background
pushd motoko/classes
make test
popd
.github/workflows/motoko-classes-example.test.sh
motoko-classes-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -34,7 +31,4 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko Classes Linux
run: |
dfx start --background
pushd motoko/classes
make test
popd
.github/workflows/motoko-classes-example.test.sh
5 changes: 5 additions & 0 deletions .github/workflows/motoko-composite-query-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
dfx start --background
pushd motoko/composite_query
make test
popd
10 changes: 2 additions & 8 deletions .github/workflows/motoko-composite-query-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ jobs:
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Composite Query Darwin
run: |
dfx start --background
pushd motoko/composite_query
make test
popd
.github/workflows/motoko-composite-query-example.test.sh
motoko-composite-query-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -35,7 +32,4 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko Composite Query Linux
run: |
dfx start --background
pushd motoko/composite_query
make test
popd
.github/workflows/motoko-composite-query-example.test.sh
5 changes: 5 additions & 0 deletions .github/workflows/motoko-counter-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
dfx start --background
pushd motoko/counter
make test
popd
10 changes: 2 additions & 8 deletions .github/workflows/motoko-counter-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Counter Darwin
run: |
dfx start --background
pushd motoko/counter
make test
popd
.github/workflows/motoko-counter-example.test.sh
motoko-counter-example-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -34,7 +31,4 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko Counter Linux
run: |
dfx start --background
pushd motoko/counter
make test
popd
.github/workflows/motoko-counter-example.test.sh
7 changes: 7 additions & 0 deletions .github/workflows/motoko-defi-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
pushd motoko/defi
bash ./scripts/install.sh
bash ./test/demo.sh
bash ./test/trade.sh
bash ./test/transfer.sh
popd
14 changes: 2 additions & 12 deletions .github/workflows/motoko-defi-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ jobs:
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Defi Darwin
run: |
pushd motoko/defi
bash ./scripts/install.sh
bash ./test/demo.sh
bash ./test/trade.sh
bash ./test/transfer.sh
popd
.github/workflows/motoko-defi-example.test.sh
motoko-defi-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -40,9 +35,4 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko Defi Linux
run: |
pushd motoko/defi
bash ./scripts/install.sh
bash ./test/demo.sh
bash ./test/trade.sh
bash ./test/transfer.sh
popd
.github/workflows/motoko-defi-example.test.sh
4 changes: 4 additions & 0 deletions .github/workflows/motoko-dip721-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
pushd motoko/dip721-nft-container
bash ./demo.sh
popd
8 changes: 2 additions & 6 deletions .github/workflows/motoko-dip721-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ jobs:
run: bash .github/workflows/provision-darwin.sh
- name: Motoko DIP-721 Darwin
run: |
pushd motoko/dip721-nft-container
bash ./demo.sh
popd
.github/workflows/motoko-dip721-example.test.sh
motoko-dip721-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -37,6 +35,4 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko DIP-721 Linux
run: |
pushd motoko/dip721-nft-container
bash ./demo.sh
popd
.github/workflows/motoko-dip721-example.test.sh
5 changes: 5 additions & 0 deletions .github/workflows/motoko-echo-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
dfx start --background
pushd motoko/echo
make test
popd
10 changes: 2 additions & 8 deletions .github/workflows/motoko-echo-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ jobs:
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Echo Darwin
run: |
dfx start --background
pushd motoko/echo
make test
popd
.github/workflows/motoko-echo-example.test.sh
motoko-echo-example-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -34,7 +31,4 @@ jobs:
run: bash .github/workflows/provision-linux.sh
- name: Motoko Echo Linux
run: |
dfx start --background
pushd motoko/echo
make test
popd
.github/workflows/motoko-echo-example.test.sh
4 changes: 4 additions & 0 deletions .github/workflows/motoko-encrypted-notes-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
pushd motoko/encrypted-notes-dapp
make test-e2e BUILD_ENV=motoko
popd
8 changes: 2 additions & 6 deletions .github/workflows/motoko-encrypted-notes-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ jobs:
popd
- name: Motoko Encrypted Notes Darwin (e2e)
run: |
pushd motoko/encrypted-notes-dapp
make test-e2e BUILD_ENV=motoko
popd
.github/workflows/motoko-encrypted-notes-example.test.sh
motoko-encrypted-notes-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -43,6 +41,4 @@ jobs:
popd
- name: Motoko Encrypted Notes Linux (e2e)
run: |
pushd motoko/encrypted-notes-dapp
make test-e2e BUILD_ENV=motoko
popd
.github/workflows/motoko-encrypted-notes-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=motoko
popd
8 changes: 2 additions & 6 deletions .github/workflows/motoko-encrypted-notes-vetkd-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
popd
- name: Motoko Encrypted Notes Darwin (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=motoko
popd
.github/workflows/motoko-encrypted-notes-vetkd-example.test.sh
motoko-encrypted-notes-linux:
runs-on: ubuntu-20.04
steps:
Expand All @@ -45,6 +43,4 @@ jobs:
popd
- name: Motoko Encrypted Notes Linux (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=motoko
popd
.github/workflows/motoko-encrypted-notes-vetkd-example.test.sh
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/motoko-hello-cycles-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/motoko-invoice-e2e.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/motoko-invoice-unit.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/motoko-ios-notifications-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/motoko-life-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/motoko-phone-book-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/motoko-pub-sub-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/motoko-send-http-get-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/motoko-superheroes-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/motoko-token-transfer-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/motoko-whoami-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-basic-bitcoin-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-basic-dao-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-canister-info-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-composite-query-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/rust-dip721-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-encrypted-notes-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/rust-nft-wallet-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-periodic-tasks-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-pub-sub-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
1 change: 1 addition & 0 deletions .github/workflows/rust-send-http-get-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-send-http-post-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
1 change: 1 addition & 0 deletions .github/workflows/rust-threshold-ecdsa-example.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/bash
Empty file.
Empty file.
Empty file.

0 comments on commit 1e601a8

Please sign in to comment.