Use Node-native TypeScript evaluation in build and test scripts (#4) #27
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
| # Copyright 2026 The zb Authors | |
| # SPDX-License-Identifier: MIT | |
| name: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| unit: | |
| name: Unit Tests | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v7 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: package.json | |
| - run: npm install | |
| - run: npm test | |
| e2e: | |
| name: End-to-End | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v7 | |
| - uses: $/ | |
| - run: zb --version | |
| bundle: | |
| name: Bundle | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v7 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: package.json | |
| - run: npm install | |
| - run: npm run typecheck | |
| - run: npm run build | |
| - name: Ensure bundle matches source | |
| run: git diff --name-only --exit-code -- dist |