Skip to content

fix license

fix license #136

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Backend
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# environment variables to set for dfx
env:
DFX_VERSION: 0.7.0-beta.6
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
./scripts/vessel-install.sh
./scripts/repl-install.sh
- name: Build
run: |
dfx cache install
# cp -f $HOME/bin/moc $HOME/.cache/dfinity/versions/$DFX_VERSION/moc
dfx start --background
dfx deploy --no-wallet CanCan
- name: Test
run: |
(for f in service/tests/*.test.sh; do
echo "==== Run test $f ===="
dfx canister --no-wallet call CanCan reset 'variant { script = 0 }'
ic-repl -r http://localhost:8000 "$f" || exit
done)
- name: stop dfx
run: |
echo "dfx stop"
dfx stop