Skip to content

chore: use dfinity/setup-dfx github action #214

chore: use dfinity/setup-dfx github action

chore: use dfinity/setup-dfx github action #214

name: motoko-encrypted-notes-vetkd
on:
push:
branches:
- master
pull_request:
paths:
- motoko/encrypted-notes-dapp-vetkd/**
- motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/motoko-encrypted-notes-vetkd-example.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
motoko-encrypted-notes-darwin:
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: dfinity/setup-dfx@main
with:
dfx-version: 0.14.2
- name: Provision Darwin
run: bash motoko/encrypted-notes-dapp-vetkd/provision-darwin.sh
- name: Motoko Encrypted Notes Darwin (unit tests)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-unit BUILD_ENV=motoko MATCHERS="$(dfx cache show)/motoko-matchers/src"
popd
- name: Motoko Encrypted Notes Darwin (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=motoko
popd
motoko-encrypted-notes-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dfinity/setup-dfx@main
with:
dfx-version: 0.14.2
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Motoko Encrypted Notes Linux (unit tests)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-unit BUILD_ENV=motoko MATCHERS="$(dfx cache show)/motoko-matchers/src"
popd
- name: Motoko Encrypted Notes Linux (e2e)
run: |
pushd motoko/encrypted-notes-dapp-vetkd
make test-e2e BUILD_ENV=motoko
popd