Skip to content

Commit

Permalink
Merge branch 'test/scaling-peer-discovery' into 'dev'
Browse files Browse the repository at this point in the history
test: add scaling peer discovery package

Closes #52

See merge request ergo/rosen-bridge/rosenet!24
  • Loading branch information
vorujack committed Apr 22, 2024
2 parents 26675d3 + 00fdeaf commit f884c39
Show file tree
Hide file tree
Showing 15 changed files with 709 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .changeset/serious-fireants-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Build and Push Scale Test Docker Image
name: Build and Push Scaling Tests Docker Images
on:
push:
paths:
- 'packages/**'
- 'tests/scaling/**'
- packages/**
- tests/scaling**

jobs:
build:
strategy:
matrix:
role: [node, relay]
test-name: ['', peer-discovery]

name: Build and Push Scale Test Docker Image
name: Build and Push Scaling Test Docker Image
permissions: write-all
runs-on: ubuntu-latest

Expand All @@ -32,13 +33,13 @@ jobs:
uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/rosen-bridge/scale-test-${{matrix.role}}
images: ghcr.io/rosen-bridge/scaling${{matrix.test-name && format('-{0}', matrix.test-name)}}-test-${{matrix.role}}
tags: latest

- name: Build and push ${{matrix.role}}
uses: docker/build-push-action@v4
with:
context: .
file: 'tests/scaling/src/${{matrix.role}}/Dockerfile'
file: tests/scaling${{matrix.test-name && format('-{0}', matrix.test-name)}}/src/${{matrix.role}}/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/scaling-peer-discovery/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
24 changes: 24 additions & 0 deletions tests/scaling-peer-discovery/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions tests/scaling-peer-discovery/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# RoseNet scaling peer discovery test

## Table of contents

- [Introduction](#introduction)
- [Usage](#usage)

## Introduction

RoseNet scaling peer discovery test

## Usage

You need to have [OpenTofu](https://opentofu.org/) installed. Then, after
[passing required variables](https://opentofu.org/docs/language/values/variables/#assigning-values-to-root-module-variables) (defined in [`variables.tf`](./variables.tf)),
run the following commands. It should complete with no errors.

```bash
tofu init
tofu apply
```

Finally run `tofu destroy` to destroy the infrastructure.
Loading

0 comments on commit f884c39

Please sign in to comment.