set caller input

This commit is contained in:
Florin Barbu 2024-01-18 17:08:36 +02:00
parent 55ade33052
commit 6fbc2bad13
No known key found for this signature in database
GPG Key ID: 593D6DBC6D9E5095
4 changed files with 10 additions and 19 deletions

View File

@ -1,4 +1,4 @@
name: Go Waku Nightly Interop Tests
name: Go Waku Interop Tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@ -16,6 +16,4 @@ jobs:
with:
node1: "harbor.status.im/wakuorg/go-waku:latest"
node2: "harbor.status.im/wakuorg/go-waku:latest"
caller: "go"

View File

@ -34,6 +34,3 @@ jobs:
node1: ${{ inputs.node1 }}
node2: ${{ inputs.node2 }}
additional_nodes: ${{ inputs.additional_nodes }}

View File

@ -1,4 +1,4 @@
name: Nim Waku Nightly Interop Tests
name: Nim Waku Interop Tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@ -16,6 +16,4 @@ jobs:
with:
node1: "harbor.status.im/wakuorg/nwaku:latest"
node2: "harbor.status.im/wakuorg/nwaku:latest"
caller: "nim"

View File

@ -18,13 +18,17 @@ on:
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"
caller:
required: false
description: "Workflow caller. Used in reporting"
type: string
env:
FORCE_COLOR: "1"
NODE_1: ${{ inputs.node1 }}
NODE_2: ${{ inputs.node2 }}
ADDITIONAL_NODES: ${{ inputs.additional_nodes }}
CALLER: ${{ inputs.caller || 'manual' }}
jobs:
@ -43,12 +47,6 @@ jobs:
- run: pip install -r requirements.txt
- name: Echo names
run: |
echo "Job name is $GITHUB_JOB"
echo "How about1 ${{ github.jobs[github.job].name }}"
echo "How about2 ${{ github.job }}"
- name: Run tests
run: pytest -n 4 --reruns 1 --alluredir=allure-results
@ -96,7 +94,7 @@ jobs:
- name: Send report to Discord
uses: rjstone/discord-webhook-notify@v1
if: always()
if: always() && env.CALLER != 'manual'
with:
severity: ${{ job.status == 'success' && 'info' || 'error' }}
username: ${{ github.workflow }}