Skip to content

chore: add tests workflow for examples-web #4

chore: add tests workflow for examples-web

chore: add tests workflow for examples-web #4

name: Run GMP Example Web Tests
on: pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
arch: [amd64]
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies for examples
run: |
npm ci
- name: Create .env file
run: |
# Dummy private key created for testing purpose only, it is not secret
npm run setup
- name: Setup Web Examples
run: |
cd examples-web
npm ci
npm run setup
nohup npm run start &
- name: Compile EVM Smart Contracts and Deploy
run: |
cd examples-web
npm run deploy