Refresh codebase for dfx 0.13.1 #95
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "build" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
env: | |
DFX_VERSION: 0.13.1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install | |
run: | | |
echo y | DFX_VERSION=$DFX_VERSION bash -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" | |
echo "/home/runner/bin" >> $GITHUB_PATH | |
npm i -g ic-mops | |
- name: Build | |
run: | | |
set -x | |
dfx cache install | |
dfx start --background | |
dfx canister create Search | |
dfx build Search | |
dfx deploy Search | |
dfx canister create UnitTest | |
dfx build UnitTest | |
dfx deploy UnitTest | |
dfx canister call UnitTest selfTest | |
- name: "docs" | |
run: /home/runner/.cache/dfinity/versions/$DFX_VERSION/mo-doc | |
- name: Upload docs | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs/ |