Skip to content

Commit ebcdca7

Browse files
authored
Merge pull request #1259 from dfinity/vivienne-prepare-examples-for-ninja
chore: prepare more examples for Ninja
2 parents e0698ac + 860444e commit ebcdca7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+905
-18209
lines changed

.github/workflows/motoko-canister-logs-example.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/motoko-classes-example.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/motoko-query-stats.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/motoko-send-http-get-example.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/motoko-send-http-post-example.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/motoko-superheroes-example.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/ninja_pr_checks.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ jobs:
3535
["React (Frontend)"]="hosting/react"
3636
["OISY Signer Demo (Frontend)"]="hosting/oisy-signer-demo"
3737
["Motoko backend (Motoko)"]="motoko/backend_only"
38+
["Canister Logs (Motoko)"]="motoko/canister_logs"
39+
["Classes (Motoko)"]="motoko/classes"
3840
["Basic Bitcoin (Motoko)"]="motoko/basic_bitcoin"
3941
["Daily Planner (Motoko)"]="motoko/daily_planner"
4042
["EVM Block Explorer (Motoko)"]="motoko/evm_block_explorer"
4143
["FileVault (Motoko)"]="motoko/filevault"
4244
["Flying Ninja (Motoko)"]="motoko/flying_ninja"
4345
["Hello World (Motoko)"]="motoko/hello_world"
4446
["LLM Chatbot (Motoko)"]="motoko/llm_chatbot"
47+
["Query Stats (Motoko)"]="motoko/query_stats"
48+
["Send HTTP Get (Motoko)"]="motoko/send_http_get"
49+
["Send HTTP Post (Motoko)"]="motoko/send_http_post"
50+
["Superheroes (Motoko)"]="motoko/superheroes"
4551
["Tokenmania (Motoko)"]="motoko/tokenmania"
4652
["NFT Creator (Motoko)"]="motoko/nft-creator"
4753
["Who Am I (Motoko)"]="motoko/who_am_i"
@@ -105,8 +111,17 @@ jobs:
105111
with:
106112
dfx-version: "0.29.0"
107113

114+
- name: Install make
115+
run: apt-get update && apt-get install -y make
116+
108117
- name: Start dfx and build project
109118
working-directory: ${{ matrix.example.path }}
110119
run: |
111120
dfx start --background
112121
dfx deploy
122+
if [ -f "Makefile" ]; then
123+
echo "Makefile found, running make test"
124+
make test
125+
else
126+
echo "No Makefile found, skipping make test"
127+
fi
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "ICP Dev Environment",
3+
"image": "ghcr.io/dfinity/icp-dev-env-slim:21",
4+
"forwardPorts": [4943, 5173],
5+
"portsAttributes": {
6+
"4943": {
7+
"label": "dfx",
8+
"onAutoForward": "ignore"
9+
},
10+
"5173": {
11+
"label": "vite",
12+
"onAutoForward": "openBrowser"
13+
}
14+
},
15+
"customizations": {
16+
"vscode": {
17+
"extensions": ["dfinity-foundation.vscode-motoko"]
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)