mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-01-04 23:13:09 +00:00
* mulitple node tests * fix filter get message * adjustments for gowaku as filter * small adjustments * small adjustments * adjustments after CI runs * prepare for PR * prepare for PR * prepare for PR * address review comments * use cluster id 0 as suggested by Prem * small adjustments after CI run * small adjustments after CI run * small adjustments after CI run * small adjustments after CI run
101 lines
2.9 KiB
YAML
101 lines
2.9 KiB
YAML
name: Interop Tests
|
|
|
|
concurrency:
|
|
group: Interop-tests
|
|
cancel-in-progress: false
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 3 * * *'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
inputs:
|
|
node1:
|
|
required: true
|
|
description: "Node that usually publishes messages. Used for all tests"
|
|
type: string
|
|
default: "harbor.status.im/wakuorg/go-waku:latest"
|
|
node2:
|
|
required: true
|
|
description: "Node that usually queries for published messages. Used for all tests"
|
|
type: string
|
|
default: "harbor.status.im/wakuorg/nwaku:latest"
|
|
additional_nodes:
|
|
required: false
|
|
description: "Additional optional nodes used in e2e tests, separated by ,"
|
|
type: string
|
|
default: "harbor.status.im/wakuorg/nwaku:latest,harbor.status.im/wakuorg/go-waku:latest,harbor.status.im/wakuorg/nwaku:latest"
|
|
protocol:
|
|
description: "Protocol used to comunicate inside the network"
|
|
required: true
|
|
type: choice
|
|
default: "REST"
|
|
options:
|
|
- "REST"
|
|
- "RPC"
|
|
|
|
env:
|
|
FORCE_COLOR: "1"
|
|
NODE_1: ${{ inputs.node1 }}
|
|
NODE_2: ${{ inputs.node2 }}
|
|
ADDITIONAL_NODES: ${{ inputs.additional_nodes }}
|
|
PROTOCOL: ${{ inputs.protocol || 'REST' }}
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
name: tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.12'
|
|
cache: 'pip'
|
|
|
|
- run: pip install -r requirements.txt
|
|
|
|
- name: Run tests
|
|
run: pytest -n 4 --reruns 1 --alluredir=allure-results
|
|
|
|
- name: Get allure history
|
|
if: always()
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: gh-pages
|
|
path: gh-pages
|
|
|
|
- name: Setup allure report
|
|
uses: simple-elf/allure-report-action@master
|
|
if: always()
|
|
id: allure-report
|
|
with:
|
|
allure_results: allure-results
|
|
gh_pages: gh-pages
|
|
allure_history: allure-history
|
|
keep_reports: 30
|
|
|
|
- name: Deploy report to Github Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: always()
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_branch: gh-pages
|
|
publish_dir: allure-history
|
|
|
|
- name: Create job summary
|
|
if: always()
|
|
run: |
|
|
echo "## Run Information" >> $GITHUB_STEP_SUMMARY
|
|
echo "- **Node1**: ${{ env.NODE_1 }}" >> $GITHUB_STEP_SUMMARY
|
|
echo "- **Node2**: ${{ env.NODE_2}}" >> $GITHUB_STEP_SUMMARY
|
|
echo "- **Additonal Nodes**: ${{ env.ADDITIONAL_NODES}}" >> $GITHUB_STEP_SUMMARY
|
|
echo "- **Protocol**: ${{ env.PROTOCOL }}" >> $GITHUB_STEP_SUMMARY
|
|
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
|
|
echo "Allure report will be available at: https://waku-org.github.io/waku-interop-tests/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY
|