diff --git a/.github/workflows/motoko-icrc2-swap-example.yml b/.github/workflows/motoko-icrc2-swap-example.yml new file mode 100644 index 000000000..3d8ef3629 --- /dev/null +++ b/.github/workflows/motoko-icrc2-swap-example.yml @@ -0,0 +1,41 @@ +name: motoko-icrc2-swap +on: + push: + branches: + - master + pull_request: + paths: + - motoko/icrc2-swap/** + - .github/workflows/provision-darwin.sh + - .github/workflows/provision-linux.sh + - .github/workflows/motoko-icrc2-swap-example.yaml +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + motoko-icrc2-swap-darwin: + runs-on: macos-12 + steps: + - uses: actions/checkout@v1 + - name: Provision Darwin + run: bash .github/workflows/provision-darwin.sh + - name: Motoko Threshold ECDSA Darwin + run: | + dfx start --background + pushd motoko/icrc2-swap + npm install + sleep 10 + make test + motoko-icrc2-swap-linux: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v1 + - name: Provision Linux + run: bash .github/workflows/provision-linux.sh + - name: Motoko Threshold ECDSA Linux + run: | + dfx start --background + pushd motoko/icrc2-swap + npm install + sleep 10 + make test