Build spore_devnet #222
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 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 |