Skip to content

Remove --dev flag to install both dependencies and devDependencies #170

Remove --dev flag to install both dependencies and devDependencies

Remove --dev flag to install both dependencies and devDependencies #170

name: ⚙️ Tests
# Dependencies:
# - SocketDev/socket-registry/.github/actions/setup-and-install@main
# - SocketDev/socket-registry/.github/actions/cache-npm-packages@main
# - SocketDev/socket-registry/.github/actions/run-script@main
# - SocketDev/socket-registry/.github/actions/artifacts@main
on:
push:
branches: [main]
tags: ['*']
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test-matrix:
strategy:
fail-fast: true
max-parallel: 4
matrix:
node-version: [20, 22, 24]
os: ['ubuntu-latest', 'windows-latest']
name: Test Node ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 90
steps:
- uses: SocketDev/socket-registry/.github/actions/setup-and-install@main
with:
node-version: ${{ matrix.node-version }}
- name: Cache npm test packages
uses: SocketDev/socket-registry/.github/actions/cache-npm-packages@main
with:
path: ~/.socket-npm-test-cache
key-prefix: npm-test-packages
cache-version: v2
- uses: SocketDev/socket-registry/.github/actions/run-script@main
with:
setup-script: 'pnpm run build'
main-script: 'pnpm run test-ci'