Skip to content

Commit 584d7e9

Browse files
committed
chore(ci): simplify CI to use socket-registry reusable workflow (eb53b17d)
1 parent 740b617 commit 584d7e9

File tree

3 files changed

+11
-26
lines changed

3 files changed

+11
-26
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,35 @@ name: ⚡ CI
33
# Dependencies:
44
# - SocketDev/socket-registry/.github/workflows/ci.yml
55

6-
concurrency:
7-
group: ${{ github.workflow }}-${{ github.ref }}
8-
cancel-in-progress: true
9-
106
on:
117
push:
128
branches: [main]
139
tags: ['*']
1410
pull_request:
1511
branches: [main]
1612
workflow_dispatch:
17-
inputs:
18-
node-versions:
19-
description: 'Node.js versions to test (JSON array)'
20-
required: false
21-
type: string
22-
default: '["22", "24"]'
2313

2414
permissions:
2515
contents: read
2616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
2721
jobs:
2822
ci:
2923
name: Run CI Pipeline
30-
uses: SocketDev/socket-registry/.github/workflows/ci.yml@b86b2cb3fefa4ffa6c1a702476f9785f6c3bb887 # main
24+
uses: SocketDev/socket-registry/.github/workflows/ci.yml@eb53b17da1dbb6170e3df74d28ec2e1e45678c70 # main
3125
with:
32-
test-setup-script: 'pnpm run build'
33-
lint-script: 'pnpm run lint --all'
34-
type-check-script: 'pnpm run check'
3526
test-script: 'pnpm exec vitest --config .config/vitest.config.mts run'
36-
node-versions: ${{ inputs.node-versions || '["22", "24"]' }}
37-
os-versions: '["ubuntu-latest", "windows-latest"]'
38-
fail-fast: false
39-
max-parallel: 4
40-
test-timeout-minutes: 15
4127

42-
# Isolated test suite - runs separately with full isolation
4328
test-isolated:
4429
name: Test (Isolated)
4530
needs: ci
4631
runs-on: ubuntu-latest
4732
timeout-minutes: 10
4833
steps:
49-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@b86b2cb3fefa4ffa6c1a702476f9785f6c3bb887 # main
34+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@eb53b17da1dbb6170e3df74d28ec2e1e45678c70 # main
5035

5136
- name: Build project
5237
run: pnpm run build

.github/workflows/provenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ permissions:
2626

2727
jobs:
2828
publish:
29-
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@b86b2cb3fefa4ffa6c1a702476f9785f6c3bb887 # main
29+
uses: SocketDev/socket-registry/.github/workflows/provenance.yml@eb53b17da1dbb6170e3df74d28ec2e1e45678c70 # main
3030
with:
3131
debug: ${{ inputs.debug }}
3232
package-name: '@socketsecurity/lib'

.github/workflows/weekly-update.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
outputs:
2525
has-updates: ${{ steps.check.outputs.has-updates }}
2626
steps:
27-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@b86b2cb3fefa4ffa6c1a702476f9785f6c3bb887 # main
27+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@eb53b17da1dbb6170e3df74d28ec2e1e45678c70 # main
2828

2929
- name: Check for npm updates
3030
id: check
@@ -48,7 +48,7 @@ jobs:
4848
contents: write
4949
pull-requests: write
5050
steps:
51-
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@b86b2cb3fefa4ffa6c1a702476f9785f6c3bb887 # main
51+
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@eb53b17da1dbb6170e3df74d28ec2e1e45678c70 # main
5252

5353
- name: Create update branch
5454
id: branch
@@ -60,7 +60,7 @@ jobs:
6060
git checkout -b "$BRANCH_NAME"
6161
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
6262
63-
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@b86b2cb3fefa4ffa6c1a702476f9785f6c3bb887 # main
63+
- uses: SocketDev/socket-registry/.github/actions/setup-git-signing@eb53b17da1dbb6170e3df74d28ec2e1e45678c70 # main
6464
with:
6565
gpg-private-key: ${{ secrets.BOT_GPG_PRIVATE_KEY }}
6666

@@ -295,7 +295,7 @@ jobs:
295295
test-output.log
296296
retention-days: 7
297297

298-
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@b86b2cb3fefa4ffa6c1a702476f9785f6c3bb887 # main
298+
- uses: SocketDev/socket-registry/.github/actions/cleanup-git-signing@eb53b17da1dbb6170e3df74d28ec2e1e45678c70 # main
299299
if: always()
300300

301301
notify:

0 commit comments

Comments
 (0)