Skip to content

Initial commit

Initial commit #286

Workflow file for this run

name: ⚡ CI
# Dependencies:
# - SocketDev/socket-registry/.github/workflows/ci.yml
on:
push:
branches: [main]
tags: ['*']
pull_request:
branches: [main]
workflow_dispatch:
inputs:
node-versions:
description: 'Node.js versions to test (JSON array)'
required: false
type: string
# Default should match packages/build-infra/external-tools.json -> tools.node.versions.recommendedVersion
default: '["24.10.0"]'
permissions:
contents: read
jobs:
versions:
name: Load Tool Versions
runs-on: ubuntu-latest
outputs:
node: ${{ steps.load.outputs.node }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Load Node.js version from external-tools.json
id: load
run: |
NODE_VERSION=$(jq -r '.tools.node.versions.recommendedVersion' packages/build-infra/external-tools.json)
echo "node=[\"$NODE_VERSION\"]" >> $GITHUB_OUTPUT
echo "Loaded Node.js: $NODE_VERSION"
ci:
name: Run CI Pipeline
needs: versions
uses: SocketDev/socket-registry/.github/workflows/ci.yml@4709a2443e5a036bb0cd94e5d1559f138f05994c # main
with:
lint-script: 'pnpm run lint'
type-check-script: 'pnpm run check'
test-script: 'pnpm run test'
node-versions: ${{ inputs.node-versions || needs.versions.outputs.node }}
os-versions: '["ubuntu-latest", "macos-latest", "windows-latest"]'
fail-fast: false
max-parallel: 4
test-timeout-minutes: 15