Restore tarball repacking with cross-platform tar support #189
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | |
| # Cache npm test packages to speed up CI runs. | |
| # The cache stores fully installed test packages in ~/.socket-npm-test-cache/ | |
| # Cache is invalidated when any packages/npm/*/package.json changes. | |
| # install-npm-packages.mjs automatically cleans node_modules from packages/npm/* | |
| # to prevent pnpm workspace symlinks from causing installation failures. | |
| - 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' |