Skip to content

Merge pull request #35 from useLiquidOps/feat/distributor #207

Merge pull request #35 from useLiquidOps/feat/distributor

Merge pull request #35 from useLiquidOps/feat/distributor #207

Workflow file for this run

name: Run Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build project
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install ao
run: curl -L https://install_ao.arweave.net | bash
- name: Build module
run: |
cd src
$HOME/.ao/bin/ao build
cd ..
- name: Temporarily save ao module
uses: actions/upload-artifact@v4
with:
name: ao-module-artifact
path: src/process.wasm
retention-days: 1
test:
name: Run integration tests
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Retrive ao module
uses: actions/download-artifact@v4
with:
name: ao-module-artifact
path: src
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install dependencies
run: npm i
- name: Run tests
run: npm test