Skip to content

Update all dependencies #275

Update all dependencies

Update all dependencies #275

Workflow file for this run

name: Build
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
build:
name: Build module
runs-on: ubuntu-latest
timeout-minutes: 6 # Usually this will be finish under 6 minutes
steps:
- uses: actions/checkout@v4
- name: ⚙ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: 🔃 Setup PNPM modules
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
run_install: true
- name: 🛠 Compiling Blackprint Modules
run: npx blackprint build production
# If you see "Segmentation fault (core dumped)" when testing with Jest, please re-run the test again, it's was an old issue and still open
# https://github.com/facebook/jest/issues/10662
- name: 🔥 Run Tests
env:
MNEMONIC_A: ${{ secrets.MNEMONIC_A }}
MNEMONIC_B: ${{ secrets.MNEMONIC_B }}
WALLET_ADDRESS_A: ${{ secrets.WALLET_ADDRESS_A }}
WALLET_ADDRESS_B: ${{ secrets.WALLET_ADDRESS_B }}
IS_PR: ${{ github.event_name == 'pull_request' }} # Skip transaction test
run: npm test
- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
if: github.event_name != 'pull_request' # Don't deploy, it will be dangerous if someone submit dangerous pull request
with:
branch: dist # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
single-commit: true