Skip to content

Refactor (#426)

Refactor (#426) #373

Workflow file for this run

name: Smoke Tests
on:
push:
branches: [main, develop]
pull_request:
workflow_dispatch:
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x]
network: [mainnet, testnet, local, previewnet]
name: ${{ matrix.network }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: |
npm ci
cd test/smoke
npm ci
- name: Start the local node with ${{ matrix.network }} images
run: npm run start -- --network ${{ matrix.network }} -d
- name: Run smoke test
uses: nick-fields/retry@v2
with:
max_attempts: 3
timeout_minutes: 3
command: npm run test:smoke
- name: Stop the local node
run: npm run stop