Skip to content
Open
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
10 changes: 5 additions & 5 deletions .github/workflows/qa-integration-tests-base-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ on:
inputs:
target_env:
type: choice
description: Midnight target environment (nodedev01/devnet/qanet/testnet02)
description: Midnight target environment (devnet/qanet/preview/preprod)
required: true
default: qanet
options:
- nodedev01
- qanet
- devnet
- testnet02
- qanet
- preview
- preprod
publish_to_xray:
type: boolean
description: Publish the test results to Xray
Expand All @@ -43,7 +43,7 @@ on:
inputs:
target_env:
type: string
description: Midnight target environment (nodedev01/devnet/qanet/testnet02)
description: Midnight target environment (devnet/qanet/preview/preprod)
required: true
default: qanet
ref:
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/qa-test-block-subscription-base-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# This file is part of midnightntwrk/midnight-indexer.
# Copyright (C) 2025 Midnight Foundation
# SPDX-License-Identifier: Apache-2.0
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Indexer QA Block Streaming Test Base Workflow

on:
workflow_call:
inputs:
target_env:
description: 'Midnight target environment (devnet/qanet/preview/preprod)'
required: true
type: string
default: qanet
node_version:
description: 'Node.js version to use'
required: false
type: string
default: '22'

jobs:
test:
name: Test - block-subscriptions
runs-on: ubuntu-latest
container:
image: node:${{ inputs.node_version }}
options: --user root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
defaults:
run:
working-directory: qa/tests
env:
TARGET_ENV: ${{ inputs.target_env }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Yarn
run: |
corepack enable
corepack prepare [email protected] --activate

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run tests
run: yarn test:integration block-subscriptions

- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports-block-subscriptions
path: qa/tests/reports/**
retention-days: 7

- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: test-logs-block-subscriptions
path: qa/tests/logs/**
retention-days: 7
14 changes: 14 additions & 0 deletions .github/workflows/qa-test-block-subscriptions-devnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Indexer QA Block Streaming Test (Devnet)

on:
workflow_dispatch:
schedule:
# Every 30 minutes on workdays (Mon-Fri), covering UK and US working hours (07:00-21:00 UTC)
- cron: '*/30 7-21 * * 1-5'

jobs:
test-block-subscriptions:
name: Test Block Subscriptions
uses: ./.github/workflows/qa-test-block-subscription-base-workflow.yml
with:
target_env: devnet
14 changes: 14 additions & 0 deletions .github/workflows/qa-test-block-subscriptions-preprod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Indexer QA Block Streaming Test (Preprod)

on:
workflow_dispatch:
schedule:
# Every 10 minutes on workdays (Mon-Fri), covering UK and US working hours (07:00-21:00 UTC)
- cron: '*/10 7-21 * * 1-5'

jobs:
test-block-subscriptions:
name: Test Block Subscriptions
uses: ./.github/workflows/qa-test-block-subscription-base-workflow.yml
with:
target_env: preprod
14 changes: 14 additions & 0 deletions .github/workflows/qa-test-block-subscriptions-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Indexer QA Block Streaming Test (Preview)

on:
workflow_dispatch:
schedule:
# Every 10 minutes on workdays (Mon-Fri), covering UK and US working hours (07:00-21:00 UTC)
- cron: '*/10 7-21 * * 1-5'

jobs:
test-block-subscriptions:
name: Test Block Subscriptions
uses: ./.github/workflows/qa-test-block-subscription-base-workflow.yml
with:
target_env: preview
14 changes: 14 additions & 0 deletions .github/workflows/qa-test-block-subscriptions-qanet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Indexer QA Block Streaming Test (QAnet)

on:
workflow_dispatch:
schedule:
# Every 30 minutes on workdays (Mon-Fri), covering UK and US working hours (07:00-21:00 UTC)
- cron: '*/30 7-21 * * 1-5'

jobs:
test-block-subscriptions:
name: Test Block Subscriptions
uses: ./.github/workflows/qa-test-block-subscription-base-workflow.yml
with:
target_env: qanet
Loading