Skip to content

refactor: simplify root scripts with unified flag forwarding #214

refactor: simplify root scripts with unified flag forwarding

refactor: simplify root scripts with unified flag forwarding #214

Workflow file for this run

name: 🚀 CI Pipeline
# Dependencies:
# - SocketDev/socket-registry/.github/workflows/ci.yml
on:
push:
branches: [main]
tags: ['*']
paths:
- 'packages/cli/**'
- 'pnpm-lock.yaml'
- 'package.json'
- '.github/workflows/ci.yml'
pull_request:
branches: [main]
paths:
- 'packages/cli/**'
- 'pnpm-lock.yaml'
- 'package.json'
- '.github/workflows/ci.yml'
workflow_dispatch:
inputs:
skip-tests:
description: 'Skip test execution'
required: false
type: boolean
default: false
skip-coverage:
description: 'Skip coverage reporting'
required: false
type: boolean
default: false
node-versions:
description: 'Node.js versions to test (JSON array)'
required: false
type: string
default: '[20, 22, 24]'
permissions:
contents: read
jobs:
ci:
name: Run CI Pipeline
uses: SocketDev/socket-registry/.github/workflows/ci.yml@600bfd38a550656b8015c92242e6d4cec5a25cb1 # main

Check failure on line 46 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

error parsing called workflow ".github/workflows/ci.yml" -> "SocketDev/socket-registry/.github/workflows/ci.yml@600bfd38a550656b8015c92242e6d4cec5a25cb1" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
with:
working-directory: 'packages/cli'
test-setup-script: 'cd packages/cli && pnpm run build'
lint-script: 'cd packages/cli && pnpm run check'
type-check-script: 'cd packages/cli && pnpm run type'
test-script: ${{ inputs.skip-tests && 'echo "Tests skipped"' || 'cd packages/cli && pnpm run test:unit' }}
coverage-script: ${{ inputs.skip-coverage && '' || 'cd packages/cli && pnpm run test:unit:coverage' }}
coverage-report-script: ${{ inputs.skip-coverage && '' || 'cd packages/cli && pnpm run coverage:percent --json' }}
node-versions: ${{ inputs.node-versions || '[20, 22, 24]' }}
os-versions: '["ubuntu-latest", "macos-latest", "windows-latest"]'
fail-fast: false