Skip to content

fix: handle beginner label in triage workflow (#2250) #6

fix: handle beginner label in triage workflow (#2250)

fix: handle beginner label in triage workflow (#2250) #6

# This workflow checks that all test files in the repository follow the naming convention of ending with "_test.py".
name: Primary PR Check - Test Files Naming
on:
push:
branches: [main]
paths:
- "tests/**"
pull_request:
types: [opened, synchronize, review_requested, ready_for_review, reopened]
paths:
- "tests/**"
permissions:
contents: read
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
check-test-files:
runs-on: ${{ (github.event.pull_request.head.repo.full_name == github.repository && github.repository_owner == 'hiero-ledger') && 'hl-sdk-py-lin-md' || 'ubuntu-latest' }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
with:
egress-policy: audit
- name: Checkout repository (shallow)
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
fetch-depth: 1 # Only fetch the latest commit
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
- name: Run test file naming check
run: node .github/scripts/pr-check-test-files.js