chore: pin dependencies (#341) #1025
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| verify_files: | |
| name: Verify Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install Packages | |
| run: npm install | |
| - name: Lint Files | |
| run: npm run lint | |
| - name: Lint Files, Dependencies, & Exports | |
| run: npm run lint:unused | |
| - name: Check Formatting | |
| run: npm run fmt:check | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest, macOS-latest, ubuntu-latest] | |
| node-version: [25.x, 24.x, 22.x, 20.x, "20.19.0"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: npm install and test | |
| run: | | |
| npm install | |
| npm test | |
| env: | |
| CI: true | |
| test_types: | |
| name: Test Types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install Packages | |
| run: npm install | |
| - name: Run TypeScript Compiler | |
| run: npx tsc | |
| - name: Test types (core) | |
| working-directory: packages/core | |
| run: | | |
| npm run test:types | |
| - name: Test types (object-schema) | |
| working-directory: packages/object-schema | |
| run: | | |
| npm run test:types | |
| - name: Test types (config-array) | |
| working-directory: packages/config-array | |
| run: | | |
| npm run test:types | |
| - name: Test types (config-helpers) | |
| working-directory: packages/config-helpers | |
| run: | | |
| npm run test:types | |
| - name: Test types (plugin-kit) | |
| working-directory: packages/plugin-kit | |
| run: | | |
| npm run test:types | |
| are-the-types-wrong: | |
| name: Are the types wrong? | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install Packages | |
| run: npm install | |
| - name: Check validity of type definitions | |
| run: npm run lint:types | |
| jsr_test: | |
| name: Verify JSR Publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install Packages | |
| run: npm install | |
| - name: Run --dry-run | |
| run: npm run test:jsr | |
| pnpm_test: | |
| name: Test pnpm Type Support | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 | |
| with: | |
| version: latest | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install Packages | |
| run: npm install | |
| - name: Run pnpm test | |
| run: npm run test:pnpm --ws --if-present |