Skip to content
Closed
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
33 changes: 33 additions & 0 deletions .github/workflows/run-single-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Single Test
permissions:
contents: read

on:
workflow_dispatch:
inputs:
test_name:
description: 'Test path or pattern to run (e.g., packages/kusama/src/assetHubKusama.bounties.e2e.test.ts)'
required: true
type: string
pull_request:
branches: [ master ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request trigger is configured for the master branch. This should be changed to main if that is the repository's default branch.


jobs:
run-test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable

- name: Run test
run: yarn test ${{ github.event.inputs.test_name }}
Comment on lines +12 to +32

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow is set up to be triggered by pull_request, but the run test step on line 32 depends on github.event.inputs.test_name, which is only populated during a workflow_dispatch event. When triggered by a pull request, this input will be empty, causing the test command to fail or run incorrectly. The pull_request trigger should be removed, as this workflow is designed to be run manually.


Loading