Skip to content

Commit

Permalink
Merge branch 'master' into gabor/assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason authored Jan 31, 2024
2 parents 9230041 + d6234de commit 0e6f288
Show file tree
Hide file tree
Showing 1,451 changed files with 337,784 additions and 9,868 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @dfinity/editorial
47 changes: 47 additions & 0 deletions .github/workflows/hosting-photo-storage-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: hosting-photo-storage
on:
push:
branches:
- master
pull_request:
paths:
- hosting/photo-storage/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/hosting-photo-storage-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
hosting-photo-storage-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Hosting Photo Storage Darwin
run: |
pushd hosting/photo-storage
# verify frontend deps install and build
npm install
npm run build
# verify that frontend asset canister deploys
dfx start --background
dfx deploy
popd
hosting-photo-storage-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Hosting Photo Storage Linux
run: |
pushd hosting/photo-storage
# verify frontend deps install and build
npm install
npm run build
# verify that frontend asset canister deploys
dfx start --background
dfx deploy
popd
39 changes: 39 additions & 0 deletions .github/workflows/hosting-static-website-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: hosting-static-website
on:
push:
branches:
- master
pull_request:
paths:
- hosting/static-website/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/hosting-static-website-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
hosting-unity-static-website-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Hosting Static Website Darwin
run: |
dfx start --background
pushd hosting/static-website
dfx deploy
popd
hosting-static-website-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Hosting Static Website Linux
run: |
dfx start --background
pushd hosting/static-website
dfx deploy
popd
39 changes: 39 additions & 0 deletions .github/workflows/hosting-unity-webgl-example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: hosting-unity-webgl
on:
push:
branches:
- master
pull_request:
paths:
- motoko/unity-webgl-template/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/hosting-unity-webgl-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
hosting-unity-webgl-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Hosting Unity Webgl Darwin
run: |
dfx start --background
pushd hosting/unity-webgl-template
dfx deploy
popd
hosting-unity-webgl-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Hosting Unity Webgl Linux
run: |
dfx start --background
pushd hosting/unity-webgl-template
dfx deploy
popd
20 changes: 14 additions & 6 deletions .github/workflows/motoko-actor_reference-example.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
name: motoko-actor-reference-example
name: motoko-actor-reference
on:
push:
branches:
- master
pull_request:
paths:
- motoko/actor_reference/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-actor_reference-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
motoko-actor-reference-example-darwin:
runs-on: macos-10.15
motoko-actor-reference-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Actor Referenc Example Darwin
- name: Motoko Actor Reference Darwin
run: |
dfx start --background
pushd motoko/actor_reference
make test
popd
motoko-actor-reference-example-linux:
motoko-actor-reference-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Motoko Actor Reference Example Linux
- name: Motoko Actor Reference Linux
run: |
dfx start --background
pushd motoko/actor_reference
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/motoko-basic-bitcoin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: motoko-basic-bitcoin
on:
push:
branches:
- master
pull_request:
paths:
- motoko/basic_bitcoin/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-basic-bitcoin.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-basic-bitcoin-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Basic Bitcoin Darwin
run: |
dfx start --background
pushd motoko/basic_bitcoin
dfx deploy basic_bitcoin --argument '(variant { regtest })'
popd
rust-basic-bitcoin-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Motoko Basic Bitcoin Linux
run: |
dfx start --background
pushd motoko/basic_bitcoin
dfx deploy basic_bitcoin --argument '(variant { regtest })'
popd
49 changes: 49 additions & 0 deletions .github/workflows/motoko-basic-dao-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: motoko-basic-dao
on:
push:
branches:
- master
pull_request:
paths:
- motoko/basic_dao/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-basic-dao-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
motoko-dao-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Motoko DAO Darwin
run: |
dfx start --background
pushd motoko/basic_dao
dfx canister create basic_dao
dfx build
(for f in tests/*.test.sh; do
echo "==== Run test $f ===="
ic-repl -r "http://localhost:$(dfx info webserver-port)" "$f" || exit
done)
popd
motoko-hello-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Motoko DAO Linux
run: |
dfx start --background
pushd motoko/basic_dao
dfx canister create basic_dao
dfx build
(for f in tests/*.test.sh; do
echo "==== Run test $f ===="
ic-repl -r "http://localhost:$(dfx info webserver-port)" "$f" || exit
done)
popd
35 changes: 31 additions & 4 deletions .github/workflows/motoko-calc-example.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,56 @@
name: motoko-calc-example
name: motoko-calc
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
sources: ${{ steps.filter.outputs.sources }}
steps:
- uses: actions/checkout@v4
if: github.event_name == 'push'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sources:
- motoko/calc/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-calc-example.yaml
motoko-calc-example-darwin:
runs-on: macos-10.15
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Calc Example Darwin
- name: Motoko Calc Darwin
run: |
dfx start --background
pushd motoko/calc
make test
popd
motoko-calc-example-linux:
needs: changes
if: github.event_name == 'push' || needs.changes.outputs.sources == 'true'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Motoko Calc Example Linux
- name: Motoko Calc Linux
run: |
dfx start --background
pushd motoko/calc
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/motoko-cert_var-example.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
name: motoko-cert-var-example
name: motoko-cert-var
on:
push:
branches:
- master
pull_request:
paths:
- motoko/cert-var/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-cert_var-example.yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
motoko-cert-var-example-darwin:
runs-on: macos-10.15
motoko-cert-var-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Motoko Certified Variable Example Darwin
- name: Motoko Certified Variable Darwin
run: |
dfx start --background
pushd motoko/cert-var
make test
popd
motoko-cert-var-example-linux:
motoko-cert-var-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Motoko Certified Variable Example Linux
- name: Motoko Certified Variable Linux
run: |
dfx start --background
pushd motoko/cert-var
Expand Down
Loading

0 comments on commit 0e6f288

Please sign in to comment.