Skip to content

Commit

Permalink
Merge branch 'main' into feat/file-manager/rocksdb-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
a-moreira committed Jun 27, 2024
2 parents 36044ae + 38aba77 commit 30322b0
Show file tree
Hide file tree
Showing 101 changed files with 8,281 additions and 5,225 deletions.
8 changes: 7 additions & 1 deletion .github/workflow-templates/setup-pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Setup pnpm & cache
description: Installs pnpm and caches the pnpm store

inputs:
node_version:
description: 'Node.js version'
default: '21'
required: false

runs:
using: composite
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 21
node-version: ${{ inputs.node_version }}

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand Down
68 changes: 64 additions & 4 deletions .github/workflows/parachain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ jobs:
if: always()
name: "Run Para & Relay Network Test"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflow-templates/setup-pnpm
Expand Down Expand Up @@ -195,7 +196,7 @@ jobs:
- name: Setup
run: |
cd test
pnpm update-types
pnpm typegen
pnpm zombie:setup:native
- name: Run Zombienet Test!
run: |
Expand All @@ -206,6 +207,7 @@ jobs:
needs: [build_image, setup]
if: always()
name: "Run Zombienet Tests"
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -224,16 +226,20 @@ jobs:
docker create --name temp_storage_hub moonsonglabs/storage-hub:latest
docker cp temp_storage_hub:/storage-hub/storage-hub-node target/release/storage-hub-node
docker rm temp_storage_hub
- name: Run Zombienet Test!
- name: Run Zombienet setup
run: |
chmod +x target/release/storage-hub-node
cd test
pnpm install
pnpm tsx scripts/downloadPolkadot.ts 1.8.0
- name: Run Zombienet Test!
run: |
cd test
pnpm zombienet test --provider native configs/simpleNative.zndsl
dev_node_test:
needs: [build_image, setup]
timeout-minutes: 30
if: always()
name: "Run Dev Node Tests"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -264,11 +270,13 @@ jobs:
cd test
pnpm install
pnpm docker:build
- name: Run Typegen
run: |
cd test
pnpm typegen
- name: Run Dev Node Tests
run: |
cd test
pnpm update-types
node --import tsx \
--test \
--test-reporter=@reporters/github \
Expand All @@ -277,3 +285,55 @@ jobs:
--test-reporter-destination=stdout \
--test-shard=${{ matrix.shard }}/4 \
./suites/solo-node/**/**.test.ts
bsp_net:
needs: [build_image, setup]
if: always()
name: "Run BSPNet Tests"
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflow-templates/setup-pnpm
with:
node_version: 22
- run: mkdir -p target/release/
- name: Get Node Binary if changed
if: needs.setup.outputs.node_changed == 'true'
uses: actions/download-artifact@v4
with:
name: node
path: target/release/
- name: Get Latest Node Binary if not changed
if: needs.setup.outputs.node_changed == 'false'
run: |
docker pull moonsonglabs/storage-hub:latest
docker create --name temp_storage_hub moonsonglabs/storage-hub:latest
docker cp temp_storage_hub:/storage-hub/storage-hub-node target/release/storage-hub-node
docker rm temp_storage_hub
- name: Build Local Docker Image
run: |
chmod +x target/release/storage-hub-node
cd test
pnpm install
pnpm docker:build
- name: Run Typegen
run: |
cd test
pnpm typegen
- name: Run BSPNet Tests
run: |
cd test
node --import tsx \
--test \
--test-reporter=@reporters/github \
--test-reporter-destination=stdout \
--test-reporter=spec \
--test-reporter-destination=stdout \
--test-shard=${{ matrix.shard }}/4 \
--test-force-exit \
./suites/integration/**/**.test.ts
Loading

0 comments on commit 30322b0

Please sign in to comment.