Skip to content

🐛 Avoid fixed ports in registry tests #1132

🐛 Avoid fixed ports in registry tests

🐛 Avoid fixed ports in registry tests #1132

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 8
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Use Node.js 22.13.1
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22.13.1'
- name: Install pnpm
run: |
npm install -g corepack@latest
corepack enable
corepack prepare pnpm@11.3.0 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run linter
run: pnpm run lint
- name: Check formatting
run: pnpm run format:check
test:
name: Test (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
timeout-minutes: 8
needs: lint
strategy:
matrix:
node-version: ['22.13.1', 24]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
run: |
npm install -g corepack@latest
corepack enable
corepack prepare pnpm@11.3.0 --activate
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test
env:
CI: true
- name: Build
run: pnpm run build
- name: Run type tests
run: pnpm run test:types
check:
name: CI Status
runs-on: ubuntu-latest
needs: [lint, test]
if: always()
steps:
- name: Check all jobs passed
run: |
if [[ "${{ needs.lint.result }}" == "failure" || "${{ needs.test.result }}" == "failure" ]]; then
echo "CI checks failed"
exit 1
fi
echo "All CI checks passed"