-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.53 KB
/
ci.yml
File metadata and controls
57 lines (49 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: ⚡ CI
# Dependencies:
# - SocketDev/socket-registry/.github/workflows/ci.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
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: '["22", "24"]'
permissions:
contents: read
jobs:
ci:
name: Run CI Pipeline
uses: SocketDev/socket-registry/.github/workflows/ci.yml@dd7ea0c4fe523792f75c4002b20e2e5c2e14c066 # main
with:
test-setup-script: 'pnpm run build'
lint-script: 'pnpm run lint --all'
type-check-script: 'pnpm run check'
test-script: 'pnpm exec vitest --config .config/vitest.config.mts run'
node-versions: ${{ inputs.node-versions || '["22", "24"]' }}
os-versions: '["ubuntu-latest", "windows-latest"]'
fail-fast: false
max-parallel: 4
test-timeout-minutes: 15
# Isolated test suite - runs separately with full isolation
test-isolated:
name: Test (Isolated)
needs: ci
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@dd7ea0c4fe523792f75c4002b20e2e5c2e14c066 # main
with:
node-version: '24'
- name: Build project
run: pnpm run build
- name: Run isolated tests
run: pnpm exec vitest --config .config/vitest.config.isolated.mts run