Skip to content

Build spore_devnet #217

Build spore_devnet

Build spore_devnet #217

Workflow file for this run

name: Build spore_devnet
on:
push:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: '30 22 * * *' # Triggered every morning at 06:30 am (UTC time)
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: '16.14'
- name: Install pnpm
run: npm install -g pnpm
- name: Print current commit hash
run: echo "Current commit hash is $GITHUB_SHA"
- name: Get Branch Name
run: echo "Current branch is ${GITHUB_REF/refs\/heads\//}"
- name: Run prepare.sh
run: bash prepare.sh -c $GITHUB_SHA
- name: Start Test
run: npm run test:start > /dev/null 2>&1 &
- name: Wait for 5 seconds
run: sleep 5
- name: recharge test
run: npm run test:e2e
- name: Clean Environment
run: npm run test:stop