Skip to content

.github/workflows/spore_devenv.yml #2

.github/workflows/spore_devenv.yml

.github/workflows/spore_devenv.yml #2

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Run prepare.sh
run: sh prepare.sh
- name: Install Cross in spore-contract directory
run: |
cd spore-contract
cargo install cross --git https://github.com/cross-rs/cross
- name: Install Capsule in spore-contract directory
run: |
cargo install ckb-capsule --git https://github.com/nervosnetwork/capsule.git --tag v0.10.1
- name: Build contracts
run: |
capsule build --release
cd ..
spore_devnet:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install Dependencies
run: npm install
- name: Build Lumos
run: npm run build:lumos
- name: Start Test
run: npm run test:start
- name: Deploy Test
run: npm run test:deploy
- name: Clean Environment
run: |
rm -rf tmp
rm lumos.json