Skip to content

new action (#321)

new action (#321) #733

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
env:
WSS_URL: ws://127.0.0.1:9955
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- run: pnpm install
- run: pnpm run build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- run: pnpm install
- run: pnpm run lint
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- run: pnpm install
- run: pnpm run fmt
test_basic:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build like before
run: |
pnpm install
pnpm run build
- name: Run standard dev test
run: |
cd test
bun moonwall test basic
test_tanssi:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: pnpm/action-setup@v2
with:
version: "latest"
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Download tanssi binary
run: |
cd test
bun moonwall download tanssi-node latest ./tmp
- name: Run standard dev test
run: |
cd test
bun moonwall test dev_tanssi
test_dev:
runs-on: ubuntu-latest
needs: ["build"]
strategy:
matrix:
suite: ["dev_test", "dev_multi", "dev_seq"]
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: pnpm/action-setup@v2
with:
version: "latest"
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- name: Download moonbeam binary
run: |
cd test
bun moonwall download moonbeam latest ./tmp
- name: Run dev test
run: |
cd test
bun moonwall test ${{ matrix.suite }}
test_chopsticks:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Run standard chopsticks run
run: |
cd test
bun moonwall test chopsticks
# disabled until we have an available instance of moonscope running
# - name: Use Send Report Action
# if: always()
# uses: ./.github/send-report-action
# with:
# table: dev_reports
# moonwallenv: moonwall_chopsticks
# report_file_path: tmp/testReports.json
# moonscope: "https://moonscope.boo:3345"
test_readonly:
runs-on: ubuntu-latest
needs: ["build"]
strategy:
matrix:
suite: ["eth_test", "viem_test", "web3_test"]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Run test
run: |
cd test
bun moonwall test ${{ matrix.suite }}
test_zombie:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build like before
run: |
pnpm install
pnpm run build
- name: Download binaries
run: |
cd test
bun moonwall download moonbeam latest ./tmp
# Change these to latest once MB is compatible with 1.2.0
bun moonwall download polkadot 1.1.0 ./tmp
bun moonwall download polkadot-execute-worker 1.1.0 ./tmp
bun moonwall download polkadot-prepare-worker 1.1.0 ./tmp
- name: Run standard zombie test
run: |
cd test
bun moonwall test zombie_test
test_multi_zombie:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build like before
run: |
pnpm install
pnpm run build
- name: Download binaries
run: |
cd test
bun moonwall download moonbeam latest ./tmp
# Change these to latest once MB is compatible with 1.2.0
bun moonwall download polkadot 1.1.0 ./tmp
bun moonwall download polkadot-execute-worker 1.1.0 ./tmp
bun moonwall download polkadot-prepare-worker 1.1.0 ./tmp
- name: Run multi zombie test
run: |
cd test
bun moonwall test zombie_multi_para