Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/e2e/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
fluence-1:
image: ${RUST_PEER_IMAGE}
ports:
- 1210:1210
- 4310:4310
command:
- -t=1210
- -w=4310
- --local
- -k=gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj
- --aqua-pool-size=2
86 changes: 47 additions & 39 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,52 @@
name: Run tests

defaults:
run:
working-directory: .

on:
push:
push:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 17.x]

steps:
- uses: actions/checkout@v2

- uses: pnpm/action-setup@v2.2.2
with:
version: 7

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Run container with Fluence node
run: |
docker pull fluencelabs/fluence
docker run -d --rm -e RUST_LOG="info" -p 1210:1210 -p 4310:4310 fluencelabs/fluence -t 1210 -w 4310 -k gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj --local --aqua-pool-size 2

- name: Install deps
run: pnpm i

- name: Run tests
run: |
pnpm -r build
pnpm -r test
env:
CI: true
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 17.x]

env:
RUST_PEER_IMAGE: fluencelabs/fluence

steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2.2.2
with:
version: 7

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Setup docker-compose
uses: KengoTODA/actions-setup-docker-compose@v1.0.9
with:
version: 'v2.10.0'

- name: Pull image
run: docker pull ${RUST_PEER_IMAGE}

- name: Run rust-peer
uses: isbang/compose-action@v1.1.0
with:
compose-file: ".github/e2e/docker-compose.yml"
down-flags: "--volumes"

- name: Install deps
run: pnpm i

- name: Run tests
run: |
pnpm -r build
pnpm -r test
env:
CI: true