build(deps): bump secp256k1 from 4.0.2 to 4.0.4 in /demo/client (#186) #167
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: "Demo: Test" | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/demo-**' | |
- 'demo/**' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'demo/**' | |
- '.github/workflows/demo-**' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: "Demo: Test" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build | |
run: | | |
pushd demo | |
# We no longer push Docker images because we deleted some Azure resources, so mcr.microsoft.com might stop working. | |
docker pull mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo:latest | |
docker build -f Dockerfile \ | |
--cache-from mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo:latest \ | |
-t mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo:latest \ | |
. | |
- name: Test | |
run: | | |
docker run --rm --name decai-demo \ | |
-v /${PWD}/demo:/root/workspace/demo \ | |
-v /root/workspace/demo/node_modules \ | |
-v /root/workspace/demo/client/node_modules \ | |
mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo:latest \ | |
/bin/bash -c "./setup_libs.sh && yarn clean && yarn test" | |
- name: Lint | |
run: | | |
# Split lint into a separate task so that it can always run even if the test fails. | |
docker run --rm --name decai-demo \ | |
-v /${PWD}/demo:/root/workspace/demo \ | |
-v /root/workspace/demo/node_modules \ | |
-v /root/workspace/demo/client/node_modules \ | |
mcr.microsoft.com/samples/blockchain-ai/0xdeca10b-demo:latest \ | |
/bin/bash -c "yarn lint" | |
# Run even if the previous step fails. | |
if: success() || failure() |