build(deps): bump actions/checkout from 4 to 6 #3
Workflow file for this run
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: Test & Build | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - '**.ts' | |
| - '**.tsx' | |
| - '**.js' | |
| - '**.jsx' | |
| - '.github/workflows/run-tests.yml' | |
| - 'package.json' | |
| - 'pnpm-lock.yaml' | |
| - 'tsconfig.json' | |
| - 'build.config.ts' | |
| pull_request: | |
| branches: [main, develop] | |
| workflow_run: | |
| workflows: ['Code Quality'] | |
| types: | |
| - completed | |
| branches: [main, develop] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| node-version: [20, 22] | |
| name: Node ${{ matrix.node-version }} - ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: '10' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Type-check, test & build | |
| run: | | |
| pnpm run typecheck | |
| pnpm run test | |
| pnpm run build | |
| - name: Verify build outputs | |
| run: | | |
| node -e "const fs=require('fs'); console.log('dist/ contents:'); fs.readdirSync('dist').forEach(f => console.log(f)); ['dist/index.mjs','dist/index.cjs','dist/index.d.ts'].forEach(f => {if(!fs.existsSync(f)) throw new Error(f+' not found')}); console.log('All required files exist')" | |
| - name: Verify package imports | |
| run: | | |
| node -e " | |
| console.log('Testing ESM import...'); | |
| import('./dist/index.mjs').then(esm => { | |
| console.log('ESM exports:', Object.keys(esm)); | |
| console.log('Package imports working correctly!'); | |
| }).catch(err => { | |
| console.error('ESM import failed:', err); | |
| process.exit(1); | |
| }); | |
| " |