Skip to content

Commit 0e6f288

Browse files
author
Jason
authored
Merge branch 'master' into gabor/assert
2 parents 9230041 + d6234de commit 0e6f288

File tree

1,451 files changed

+337784
-9868
lines changed

Some content is hidden

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

1,451 files changed

+337784
-9868
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @dfinity/editorial
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: hosting-photo-storage
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- hosting/photo-storage/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/hosting-photo-storage-example.yml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
hosting-photo-storage-darwin:
17+
runs-on: macos-12
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Provision Darwin
21+
run: bash .github/workflows/provision-darwin.sh
22+
- name: Hosting Photo Storage Darwin
23+
run: |
24+
pushd hosting/photo-storage
25+
# verify frontend deps install and build
26+
npm install
27+
npm run build
28+
# verify that frontend asset canister deploys
29+
dfx start --background
30+
dfx deploy
31+
popd
32+
hosting-photo-storage-linux:
33+
runs-on: ubuntu-20.04
34+
steps:
35+
- uses: actions/checkout@v1
36+
- name: Provision Linux
37+
run: bash .github/workflows/provision-linux.sh
38+
- name: Hosting Photo Storage Linux
39+
run: |
40+
pushd hosting/photo-storage
41+
# verify frontend deps install and build
42+
npm install
43+
npm run build
44+
# verify that frontend asset canister deploys
45+
dfx start --background
46+
dfx deploy
47+
popd
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: hosting-static-website
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- hosting/static-website/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/hosting-static-website-example.yaml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
hosting-unity-static-website-darwin:
17+
runs-on: macos-12
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Provision Darwin
21+
run: bash .github/workflows/provision-darwin.sh
22+
- name: Hosting Static Website Darwin
23+
run: |
24+
dfx start --background
25+
pushd hosting/static-website
26+
dfx deploy
27+
popd
28+
hosting-static-website-linux:
29+
runs-on: ubuntu-20.04
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Provision Linux
33+
run: bash .github/workflows/provision-linux.sh
34+
- name: Hosting Static Website Linux
35+
run: |
36+
dfx start --background
37+
pushd hosting/static-website
38+
dfx deploy
39+
popd
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: hosting-unity-webgl
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- motoko/unity-webgl-template/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/hosting-unity-webgl-example.yaml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
hosting-unity-webgl-darwin:
17+
runs-on: macos-12
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Provision Darwin
21+
run: bash .github/workflows/provision-darwin.sh
22+
- name: Hosting Unity Webgl Darwin
23+
run: |
24+
dfx start --background
25+
pushd hosting/unity-webgl-template
26+
dfx deploy
27+
popd
28+
hosting-unity-webgl-linux:
29+
runs-on: ubuntu-20.04
30+
steps:
31+
- uses: actions/checkout@v1
32+
- name: Provision Linux
33+
run: bash .github/workflows/provision-linux.sh
34+
- name: Hosting Unity Webgl Linux
35+
run: |
36+
dfx start --background
37+
pushd hosting/unity-webgl-template
38+
dfx deploy
39+
popd

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
1-
name: motoko-actor-reference-example
1+
name: motoko-actor-reference
22
on:
33
push:
44
branches:
55
- master
66
pull_request:
7+
paths:
8+
- motoko/actor_reference/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/motoko-actor_reference-example.yaml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
715
jobs:
8-
motoko-actor-reference-example-darwin:
9-
runs-on: macos-10.15
16+
motoko-actor-reference-darwin:
17+
runs-on: macos-12
1018
steps:
1119
- uses: actions/checkout@v1
1220
- name: Provision Darwin
1321
run: bash .github/workflows/provision-darwin.sh
14-
- name: Motoko Actor Referenc Example Darwin
22+
- name: Motoko Actor Reference Darwin
1523
run: |
1624
dfx start --background
1725
pushd motoko/actor_reference
1826
make test
1927
popd
20-
motoko-actor-reference-example-linux:
28+
motoko-actor-reference-linux:
2129
runs-on: ubuntu-20.04
2230
steps:
2331
- uses: actions/checkout@v1
2432
- name: Provision Linux
2533
run: bash .github/workflows/provision-linux.sh
26-
- name: Motoko Actor Reference Example Linux
34+
- name: Motoko Actor Reference Linux
2735
run: |
2836
dfx start --background
2937
pushd motoko/actor_reference
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: motoko-basic-bitcoin
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- motoko/basic_bitcoin/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/motoko-basic-bitcoin.yaml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
rust-basic-bitcoin-darwin:
17+
runs-on: macos-12
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
- name: Provision Darwin
23+
run: bash .github/workflows/provision-darwin.sh
24+
- name: Motoko Basic Bitcoin Darwin
25+
run: |
26+
dfx start --background
27+
pushd motoko/basic_bitcoin
28+
dfx deploy basic_bitcoin --argument '(variant { regtest })'
29+
popd
30+
rust-basic-bitcoin-linux:
31+
runs-on: ubuntu-20.04
32+
steps:
33+
- uses: actions/checkout@v2
34+
with:
35+
submodules: recursive
36+
- name: Provision Linux
37+
run: bash .github/workflows/provision-linux.sh
38+
- name: Motoko Basic Bitcoin Linux
39+
run: |
40+
dfx start --background
41+
pushd motoko/basic_bitcoin
42+
dfx deploy basic_bitcoin --argument '(variant { regtest })'
43+
popd
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: motoko-basic-dao
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
paths:
8+
- motoko/basic_dao/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/motoko-basic-dao-example.yml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
jobs:
16+
motoko-dao-darwin:
17+
runs-on: macos-12
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Provision Darwin
21+
run: bash .github/workflows/provision-darwin.sh
22+
- name: Motoko DAO Darwin
23+
run: |
24+
dfx start --background
25+
pushd motoko/basic_dao
26+
dfx canister create basic_dao
27+
dfx build
28+
(for f in tests/*.test.sh; do
29+
echo "==== Run test $f ===="
30+
ic-repl -r "http://localhost:$(dfx info webserver-port)" "$f" || exit
31+
done)
32+
popd
33+
motoko-hello-linux:
34+
runs-on: ubuntu-20.04
35+
steps:
36+
- uses: actions/checkout@v1
37+
- name: Provision Linux
38+
run: bash .github/workflows/provision-linux.sh
39+
- name: Motoko DAO Linux
40+
run: |
41+
dfx start --background
42+
pushd motoko/basic_dao
43+
dfx canister create basic_dao
44+
dfx build
45+
(for f in tests/*.test.sh; do
46+
echo "==== Run test $f ===="
47+
ic-repl -r "http://localhost:$(dfx info webserver-port)" "$f" || exit
48+
done)
49+
popd

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

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,56 @@
1-
name: motoko-calc-example
1+
name: motoko-calc
22
on:
33
push:
44
branches:
55
- master
66
pull_request:
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
710
jobs:
11+
# JOB to run change detection
12+
changes:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
pull-requests: read
16+
# Set job outputs to values from filter step
17+
outputs:
18+
sources: ${{ steps.filter.outputs.sources }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
if: github.event_name == 'push'
22+
- uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
sources:
27+
- motoko/calc/**
28+
- .github/workflows/provision-darwin.sh
29+
- .github/workflows/provision-linux.sh
30+
- .github/workflows/motoko-calc-example.yaml
831
motoko-calc-example-darwin:
9-
runs-on: macos-10.15
32+
needs: changes
33+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
34+
runs-on: macos-12
1035
steps:
1136
- uses: actions/checkout@v1
1237
- name: Provision Darwin
1338
run: bash .github/workflows/provision-darwin.sh
14-
- name: Motoko Calc Example Darwin
39+
- name: Motoko Calc Darwin
1540
run: |
1641
dfx start --background
1742
pushd motoko/calc
1843
make test
1944
popd
2045
motoko-calc-example-linux:
46+
needs: changes
47+
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
2148
runs-on: ubuntu-20.04
2249
steps:
2350
- uses: actions/checkout@v1
2451
- name: Provision Linux
2552
run: bash .github/workflows/provision-linux.sh
26-
- name: Motoko Calc Example Linux
53+
- name: Motoko Calc Linux
2754
run: |
2855
dfx start --background
2956
pushd motoko/calc

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,37 @@
1-
name: motoko-cert-var-example
1+
name: motoko-cert-var
22
on:
33
push:
44
branches:
55
- master
66
pull_request:
7+
paths:
8+
- motoko/cert-var/**
9+
- .github/workflows/provision-darwin.sh
10+
- .github/workflows/provision-linux.sh
11+
- .github/workflows/motoko-cert_var-example.yaml
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
715
jobs:
8-
motoko-cert-var-example-darwin:
9-
runs-on: macos-10.15
16+
motoko-cert-var-darwin:
17+
runs-on: macos-12
1018
steps:
1119
- uses: actions/checkout@v1
1220
- name: Provision Darwin
1321
run: bash .github/workflows/provision-darwin.sh
14-
- name: Motoko Certified Variable Example Darwin
22+
- name: Motoko Certified Variable Darwin
1523
run: |
1624
dfx start --background
1725
pushd motoko/cert-var
1826
make test
1927
popd
20-
motoko-cert-var-example-linux:
28+
motoko-cert-var-linux:
2129
runs-on: ubuntu-20.04
2230
steps:
2331
- uses: actions/checkout@v1
2432
- name: Provision Linux
2533
run: bash .github/workflows/provision-linux.sh
26-
- name: Motoko Certified Variable Example Linux
34+
- name: Motoko Certified Variable Linux
2735
run: |
2836
dfx start --background
2937
pushd motoko/cert-var

0 commit comments

Comments
 (0)